aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-01-28 17:33:51 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-01-28 17:33:51 +0000
commitbbb06e66335a29bb5911bd3c39ac06f0e54f25a2 (patch)
tree99d43c61141b6acc197451391a3b0aacf96eb06a /phpBB
parente46d624c6bf84b8669196e081dff5c434fd0e25a (diff)
downloadforums-bbb06e66335a29bb5911bd3c39ac06f0e54f25a2.tar
forums-bbb06e66335a29bb5911bd3c39ac06f0e54f25a2.tar.gz
forums-bbb06e66335a29bb5911bd3c39ac06f0e54f25a2.tar.bz2
forums-bbb06e66335a29bb5911bd3c39ac06f0e54f25a2.tar.xz
forums-bbb06e66335a29bb5911bd3c39ac06f0e54f25a2.zip
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
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/page_header.php11
-rw-r--r--phpBB/includes/page_tail.php2
2 files changed, 6 insertions, 7 deletions
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)
);