includes/pageprocess.php
changeset 286 b2f985e4cef3
parent 285 7846d45bd250
child 304 e2cb5f1432c8
child 312 6c7060d36a23
--- a/includes/pageprocess.php	Fri Nov 23 17:59:24 2007 -0500
+++ b/includes/pageprocess.php	Sat Nov 24 00:53:23 2007 -0500
@@ -166,13 +166,16 @@
         $this->send_headers = false;
         $strict_no_headers = true;
       }
-      if ( $paths->pages[$pathskey]['password'] != '' && $paths->pages[$pathskey]['password'] != sha1('') )
+      if ( isset($paths->pages[$pathskey]['password']) )
       {
-        $password =& $paths->pages[$pathskey]['password'];
-        if ( $this->password != $password )
+        if ( $paths->pages[$pathskey]['password'] != '' && $paths->pages[$pathskey]['password'] != sha1('') )
         {
-          $this->err_wrong_password();
-          return false;
+          $password =& $paths->pages[$pathskey]['password'];
+          if ( $this->password != $password )
+          {
+            $this->err_wrong_password();
+            return false;
+          }
         }
       }
     }