diff options
author | friendica <info@friendica.com> | 2012-08-30 18:47:07 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-08-30 18:47:07 -0700 |
commit | 80bd128425b99d91ddca897bc2cd6dcef5268fe4 (patch) | |
tree | 5d45270dbbdfc12674cd79b580a7fd19c7fa4d9c /mod/profperm.php | |
parent | 08508c4216ba4750fc0f1c0f521a69b0b91090e0 (diff) | |
download | volse-hubzilla-80bd128425b99d91ddca897bc2cd6dcef5268fe4.tar.gz volse-hubzilla-80bd128425b99d91ddca897bc2cd6dcef5268fe4.tar.bz2 volse-hubzilla-80bd128425b99d91ddca897bc2cd6dcef5268fe4.zip |
more DB cleanup
Diffstat (limited to 'mod/profperm.php')
-rw-r--r-- | mod/profperm.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mod/profperm.php b/mod/profperm.php index d29581beb..b31dfc128 100644 --- a/mod/profperm.php +++ b/mod/profperm.php @@ -57,7 +57,7 @@ function profperm_content(&$a) { } $profile = $r[0]; - $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `profile-id` = %d", + $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `profile_id` = %d", intval(local_user()), intval($a->argv[1]) ); @@ -71,13 +71,13 @@ function profperm_content(&$a) { if($change) { if(in_array($change,$ingroup)) { - q("UPDATE `contact` SET `profile-id` = 0 WHERE `id` = %d AND `uid` = %d LIMIT 1", + q("UPDATE `contact` SET `profile_id` = 0 WHERE `id` = %d AND `uid` = %d LIMIT 1", intval($change), intval(local_user()) ); } else { - q("UPDATE `contact` SET `profile-id` = %d WHERE `id` = %d AND `uid` = %d LIMIT 1", + q("UPDATE `contact` SET `profile_id` = %d WHERE `id` = %d AND `uid` = %d LIMIT 1", intval($a->argv[1]), intval($change), intval(local_user()) @@ -85,7 +85,7 @@ function profperm_content(&$a) { } - $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `profile-id` = %d", + $r = q("SELECT * FROM `contact` WHERE `uid` = %d AND `profile_id` = %d", intval(local_user()), intval($a->argv[1]) ); |