aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/index.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-01-28 17:25:58 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-01-28 17:25:58 +0000
commite46d624c6bf84b8669196e081dff5c434fd0e25a (patch)
tree57de42ac1df87cdcf1514316c915f4df307a1f90 /phpBB/index.php
parent4c87b7480ec92755ccf30aaa39a2132b95693e9b (diff)
downloadforums-e46d624c6bf84b8669196e081dff5c434fd0e25a.tar
forums-e46d624c6bf84b8669196e081dff5c434fd0e25a.tar.gz
forums-e46d624c6bf84b8669196e081dff5c434fd0e25a.tar.bz2
forums-e46d624c6bf84b8669196e081dff5c434fd0e25a.tar.xz
forums-e46d624c6bf84b8669196e081dff5c434fd0e25a.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@1997 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/index.php')
-rw-r--r--phpBB/index.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/phpBB/index.php b/phpBB/index.php
index ffc8e46f00..ef53a5b5bc 100644
--- a/phpBB/index.php
+++ b/phpBB/index.php
@@ -27,7 +27,7 @@ include($phpbb_root_path . 'common.'.$phpEx);
//
// Start session management
//
-$userdata = session_pagestart($user_ip, PAGE_INDEX, $board_config['session_length']);
+$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
@@ -194,6 +194,7 @@ if( ( $total_categories = count($category_rows) ) )
message_die(GENERAL_ERROR, "Could not query new topic information", "", __LINE__, __FILE__, $sql);
}
+ $new_topic_data = array();
while( $topic_data = $db->sql_fetchrow($result) )
{
$new_topic_data[$topic_data['forum_id']][$topic_data['topic_id']] = $topic_data['post_time'];
@@ -324,7 +325,7 @@ if( ( $total_categories = count($category_rows) ) )
$unread_topics = false;
if( $userdata['session_logged_in'] )
{
- if( count($new_topic_data[$forum_id]) )
+ if( !empty($new_topic_data[$forum_id]) )
{
$forum_last_post_time = 0;