summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2012-05-08 16:56:34 +0200
committerMichael Tänzer <neo@nhng.de>2012-05-08 16:56:34 +0200
commit619093aa4e83697d335a17decedc5f977cbd2f81 (patch)
tree66802fbe7f6f166646fe8528f9962972596a1972 /scripts
parentdbf8bac704968da92b425214d9e79c0507b16985 (diff)
downloadcacert-devel-619093aa4e83697d335a17decedc5f977cbd2f81.tar.gz
cacert-devel-619093aa4e83697d335a17decedc5f977cbd2f81.tar.xz
cacert-devel-619093aa4e83697d335a17decedc5f977cbd2f81.zip
bug 1003: Doh, for copy and paste.
Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'scripts')
-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()
);