summaryrefslogtreecommitdiff
path: root/scripts/resetpermissions.php
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/resetpermissions.php')
-rwxr-xr-x[-rw-r--r--]scripts/resetpermissions.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/resetpermissions.php b/scripts/resetpermissions.php
index f97ad9d..055e36a 100644..100755
--- a/scripts/resetpermissions.php
+++ b/scripts/resetpermissions.php
@@ -40,11 +40,11 @@ foreach ($flags as $flag) {
echo "$row[fname] $row[lname] $row[email]";
$update = "update `users` set `$flag` = 0 where `id` = $row[id]";
- if(! $res = mysql_query($query) ) {
+ if(! $res2 = mysql_query($update) ) {
echo " NOT RESET!!!\n";
fwrite(STDERR,
- "MySQL query for flag $flag failed:\n".
- "\"$query\"\n".
+ "MySQL query for $flag flag reset on user $row[id] failed:\n".
+ "\"$update\"\n".
mysql_error()
);