includes/pageutils.php
changeset 1121 bf5adc446018
parent 1114 4f4d63a281cd
child 1153 124ebcbb6a31
equal deleted inserted replaced
1120:55b5911cd39e 1121:bf5adc446018
   255     if ( !isPage($pname) )
   255     if ( !isPage($pname) )
   256     {
   256     {
   257       return 'DNE';
   257       return 'DNE';
   258     }
   258     }
   259     
   259     
   260     if ( isPage($pname['password']) )
   260     if ( isPage($pname) )
   261     {
   261     {
   262       $password_exists = ( !empty($cdata['password']) && $cdata['password'] !== sha1('') );
   262       $password_exists = ( !empty($cdata['password']) && $cdata['password'] !== sha1('') );
   263       if ( $password_exists && $password !== $cdata['password'] )
   263       if ( $password_exists && $password !== $cdata['password'] )
   264       {
   264       {
   265         return '<p>' . $lang->get('history_err_wrong_password') . '</p>';
   265         return '<p>' . $lang->get('history_err_wrong_password') . '</p>';