aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/viewonline.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-04-15 17:32:12 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-04-15 17:32:12 +0000
commiteecdd3049f42166975864d2c1eb359ba09c9c229 (patch)
tree8e00f37521efd8c2a0eaf228dab6282742ef3a7e /phpBB/viewonline.php
parentcbafa0db4ebb54217a222c86a3083f0244c0ec3b (diff)
downloadforums-eecdd3049f42166975864d2c1eb359ba09c9c229.tar
forums-eecdd3049f42166975864d2c1eb359ba09c9c229.tar.gz
forums-eecdd3049f42166975864d2c1eb359ba09c9c229.tar.bz2
forums-eecdd3049f42166975864d2c1eb359ba09c9c229.tar.xz
forums-eecdd3049f42166975864d2c1eb359ba09c9c229.zip
error_die changes and various bug fixes to files
git-svn-id: file:///svn/phpbb/trunk@149 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/viewonline.php')
-rw-r--r--phpBB/viewonline.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpBB/viewonline.php b/phpBB/viewonline.php
index 11dc8a51c3..4c6860b7fd 100644
--- a/phpBB/viewonline.php
+++ b/phpBB/viewonline.php
@@ -1,6 +1,6 @@
<?php
/***************************************************************************
- * index.php
+ * viewonline.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
@@ -51,18 +51,18 @@ $sql = "SELECT u.username, u.user_id, f.forum_name, f.forum_id, s.session_page,
$result = $db->sql_query($sql);
if(!$result)
{
- error_die($db, QUERY_ERROR);
+ error_die(SQL_QUERY, "Couldn't obtain user/online information.", __LINE__, __FILE__);
}
$onlinerow = $db->sql_fetchrowset($result);
if(!$onlinerow)
{
- error_die($db, QUERY_ERROR, "Couldn't fetchrow");
+ error_die(SQL_QUERY, "Couldn't fetchrow", __LINE__, __FILE__);
}
$template->assign_vars(array(
"PHP_SELF" => $PHP_SELF,
"POST_FORUM_URL" => POST_FORUM_URL,
- "POST_USER_URL" => POST_USER_URL,
+ "POST_USER_URL" => POST_USERS_URL,
"L_WHOSONLINE" => $l_whosonline,
"L_USERNAME" => $l_username,
"L_LOCATION" => $l_location
@@ -158,7 +158,7 @@ if($online_count)
}
else
{
- error_die($db, GENERAL_ERROR, "There are no users currently browsing this forum");
+ error_die(GENERAL_ERROR, "There are no users currently browsing this forum");
}
include('includes/page_tail.'.$phpEx);