includes/template.php
changeset 936 41090c4d2648
parent 935 9e124177c9a4
child 953 323c4cd1aa37
--- a/includes/template.php	Thu Apr 16 22:48:59 2009 -0400
+++ b/includes/template.php	Fri Apr 17 08:40:48 2009 -0400
@@ -407,6 +407,11 @@
       $local_namespace =& $page->namespace;
       $local_page_exists = $page->exists();
       $perms =& $page->perms;
+      if ( !is_object($perms) )
+      {
+        unset($perms);
+        $perms = $session->fetch_page_acl($local_page_id, $local_namespace);
+      }
     }
     else
     {