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
This commit is contained in:
Paul S. Owen 2002-01-28 17:33:51 +00:00
parent e46d624c6b
commit bbb06e6633
2 changed files with 6 additions and 7 deletions

View file

@ -20,7 +20,7 @@
* *
***************************************************************************/ ***************************************************************************/
define(HEADER_INC, TRUE); define('HEADER_INC', TRUE);
// //
// gzip_compression // gzip_compression
@ -160,7 +160,7 @@ while( $row = $db->sql_fetchrow($result) )
$prev_user_id = $row['user_id']; $prev_user_id = $row['user_id'];
} }
if( $online_userlist == "" ) if( empty($online_userlist) )
{ {
$online_userlist = $lang['None']; $online_userlist = $lang['None'];
} }
@ -297,6 +297,7 @@ if( $userdata['session_logged_in'] )
} }
else else
{ {
$icon_pm = $images['pm_no_new_msg'];
$l_privmsgs_text = $lang['Login_check_pm']; $l_privmsgs_text = $lang['Login_check_pm'];
$l_privmsgs_text_unread = ""; $l_privmsgs_text_unread = "";
$s_privmsg_new = 0; $s_privmsg_new = 0;
@ -457,17 +458,15 @@ $template->assign_vars(array(
if( !$userdata['session_logged_in'] ) if( !$userdata['session_logged_in'] )
{ {
$template->assign_block_vars("switch_user_logged_out", array()); $template->assign_block_vars("switch_user_logged_out", array());
} }
else else
{ {
$template->assign_block_vars("switch_user_logged_in", array()); $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()); $template->assign_block_vars("switch_enable_pm_popup", array());
} }
} }
header ("Cache-Control: no-store, no-cache, must-revalidate"); 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"); $template->pparse("overall_header");
?> ?>

View file

@ -48,7 +48,7 @@ else
$template->assign_vars(array( $template->assign_vars(array(
"PHPBB_VERSION" => "2.0 CVS", "PHPBB_VERSION" => "2.0 CVS",
"TRANSLATION_INFO" => $lang['TRANSLATION_INFO'], "TRANSLATION_INFO" => ( isset($lang['TRANSLATION_INFO']) ) ? $lang['TRANSLATION_INFO'] : "",
"ADMIN_LINK" => $admin_link) "ADMIN_LINK" => $admin_link)
); );