aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_user.inc.php
diff options
context:
space:
mode:
authorgweltas <gweltas@piwigo.org>2004-01-12 23:41:53 +0000
committergweltas <gweltas@piwigo.org>2004-01-12 23:41:53 +0000
commit0fa0c8bb07c80884ac8b79560ba4c4119abfcd5c (patch)
tree520a704560749c2e5a981092bae7db99e34cf27b /include/functions_user.inc.php
parent7b8d0b8dd8d3f5fa25dedaadb922525e7c95ee3b (diff)
Minor corrections of PHP warnings
git-svn-id: http://piwigo.org/svn/branches/release-1_3@276 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_user.inc.php')
-rw-r--r--include/functions_user.inc.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index 050d83c6d..c623cf0c7 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -207,12 +207,14 @@ function check_login_authorization()
{
global $user,$lang,$conf,$page;
- if ( $user['is_the_guest']
- and ( $conf['access'] == 'restricted' or $page['cat'] == 'fav' ) )
+ if ( $user['is_the_guest'])
+ {
+ if ( $conf['access'] == 'restricted' || (isset($page['cat']) && $page['cat'] == 'fav' ) )
{
echo '<div style="text-align:center;">'.$lang['only_members'].'<br />';
echo '<a href="./identification.php">'.$lang['ident_title'].'</a></div>';
exit();
}
+ }
}
?> \ No newline at end of file