[pLog-svn] r3716 - plog/trunk

mark at devel.lifetype.net mark at devel.lifetype.net
Mon Jul 10 12:58:02 GMT 2006


Author: mark
Date: 2006-07-10 12:58:02 +0000 (Mon, 10 Jul 2006)
New Revision: 3716

Modified:
   plog/trunk/wizard.php
Log:
Fixed bug http://bugs.lifetype.net/view.php?id=980.

Modified: plog/trunk/wizard.php
===================================================================
--- plog/trunk/wizard.php	2006-07-10 12:46:15 UTC (rev 3715)
+++ plog/trunk/wizard.php	2006-07-10 12:58:02 UTC (rev 3716)
@@ -1967,7 +1967,7 @@
             $numComments = Array();
             while( $row = $res1->FetchRow()) {
                 $userId = $row["user_id"];
-                $update = "UPDATE ".$this->dbPrefix."users SET site_admin = ".Db::qstr($userId);
+                $update = "UPDATE ".$this->dbPrefix."users SET site_admin = 1 WHERE id = ".Db::qstr($userId);
                 $result = $this->Execute( $update );
                 if( !$result ) {
                     $this->message .= "Error updating user with id {$userId}<br/>";



More information about the pLog-svn mailing list