From 182fb00f8f7873d220ab8502a31357f9245fbf8f Mon Sep 17 00:00:00 2001 From: rub Date: Tue, 5 Jun 2007 22:01:15 +0000 Subject: Resolved issue 0000697: with generic user a author name is necessary to comment picture. + Change way to determinate if user is a guest (use functions like is_admin) git-svn-id: http://piwigo.org/svn/trunk@2029 68402e56-0260-453c-a942-63ccdbb3a9ee --- profile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'profile.php') diff --git a/profile.php b/profile.php index 127ba3cc8..922f4c6d1 100644 --- a/profile.php +++ b/profile.php @@ -206,7 +206,7 @@ function save_profile_from_post(&$userdata, &$errors) function load_profile_in_template($url_action, $url_redirect, $userdata) { - global $template; + global $template, $conf; $template->set_filename('profile_content', 'profile_content.tpl'); @@ -293,7 +293,7 @@ function load_profile_in_template($url_action, $url_redirect, $userdata) )); } - if (!($userdata['is_the_guest'] or $userdata['is_the_default'])) + if (!(in_array($userdata['id'], array($conf['guest_id'], $conf['default_user_id'])))) { $template->assign_block_vars('not_special_user', array()); if ( !defined('IN_ADMIN') ) -- cgit v1.2.3