includes/sessions.php
changeset 1173 b5b8e7ab0914
parent 1170 71cb87b7dc3f
child 1175 1e2c9819ede3
--- a/includes/sessions.php	Fri Dec 18 05:05:01 2009 -0500
+++ b/includes/sessions.php	Fri Dec 18 05:12:02 2009 -0500
@@ -4356,9 +4356,10 @@
       ORDER BY target_type ASC, page_id ASC, namespace ASC;';
       
     $q = $session->sql($bs);
-    if ( $row = $db->fetchrow() )
+    if ( $row = $db->fetchrow($q, true) )
     {
-      do {
+      do
+      {
         $rules = $session->string_to_perm($row['rules']);
         $is_everyone = ( $row['target_type'] == ACL_TYPE_GROUP && $row['target_id'] == 1 );
         // log where this comes from