mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-05 05:55:15 +02:00
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:
parent
e46d624c6b
commit
bbb06e6633
@ -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");
|
||||
|
||||
?>
|
||||
?>
|
@ -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)
|
||||
);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user