From bbb06e66335a29bb5911bd3c39ac06f0e54f25a2 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Mon, 28 Jan 2002 17:33:51 +0000 Subject: Fix various var not set warnings ... many thanks go to The Horta for pointing out and offering fixes for many of these git-svn-id: file:///svn/phpbb/trunk@1998 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/page_header.php | 11 +++++------ phpBB/includes/page_tail.php | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) (limited to 'phpBB') diff --git a/phpBB/includes/page_header.php b/phpBB/includes/page_header.php index fdbb3dab9b..9b3f61b06a 100644 --- a/phpBB/includes/page_header.php +++ b/phpBB/includes/page_header.php @@ -20,7 +20,7 @@ * ***************************************************************************/ -define(HEADER_INC, TRUE); +define('HEADER_INC', TRUE); // // gzip_compression @@ -160,7 +160,7 @@ while( $row = $db->sql_fetchrow($result) ) $prev_user_id = $row['user_id']; } -if( $online_userlist == "" ) +if( empty($online_userlist) ) { $online_userlist = $lang['None']; } @@ -297,6 +297,7 @@ if( $userdata['session_logged_in'] ) } else { + $icon_pm = $images['pm_no_new_msg']; $l_privmsgs_text = $lang['Login_check_pm']; $l_privmsgs_text_unread = ""; $s_privmsg_new = 0; @@ -457,17 +458,15 @@ $template->assign_vars(array( if( !$userdata['session_logged_in'] ) { $template->assign_block_vars("switch_user_logged_out", array()); - } else { $template->assign_block_vars("switch_user_logged_in", array()); - if( $userdata['user_popup_pm'] ) + if( !empty($userdata['user_popup_pm']) ) { $template->assign_block_vars("switch_enable_pm_popup", array()); } - } header ("Cache-Control: no-store, no-cache, must-revalidate"); @@ -478,4 +477,4 @@ header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); $template->pparse("overall_header"); -?> +?> \ No newline at end of file diff --git a/phpBB/includes/page_tail.php b/phpBB/includes/page_tail.php index baf16f9917..d06cfd64e2 100644 --- a/phpBB/includes/page_tail.php +++ b/phpBB/includes/page_tail.php @@ -48,7 +48,7 @@ else $template->assign_vars(array( "PHPBB_VERSION" => "2.0 CVS", - "TRANSLATION_INFO" => $lang['TRANSLATION_INFO'], + "TRANSLATION_INFO" => ( isset($lang['TRANSLATION_INFO']) ) ? $lang['TRANSLATION_INFO'] : "", "ADMIN_LINK" => $admin_link) ); -- cgit v1.2.1