fix bug 451:

when guest access in not allowed identification.php script try
to redirect to himself ad infinitum.


git-svn-id: http://piwigo.org/svn/trunk@1522 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
nikrou 2006-08-01 13:33:21 +00:00
commit 3723a95a6c

View file

@ -65,7 +65,8 @@ else
$user['is_the_guest'] = true;
}
if ($user['is_the_guest'] and !$conf['guest_access'])
if ($user['is_the_guest'] and !$conf['guest_access']
and (basename($_SERVER['PHP_SELF'])!='identification.php'))
{
redirect (get_root_url().'identification.php');
}