aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2002-02-18 13:10:49 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2002-02-18 13:10:49 +0000
commiteb92b9c4093b064a8a4b5166464e5d1e792367b3 (patch)
tree3b8c67f1282af893e6f222c9f5fd86d3b2727082 /phpBB
parent181fb574cdf90abd2399a976a2dd81ddc358480d (diff)
downloadforums-eb92b9c4093b064a8a4b5166464e5d1e792367b3.tar
forums-eb92b9c4093b064a8a4b5166464e5d1e792367b3.tar.gz
forums-eb92b9c4093b064a8a4b5166464e5d1e792367b3.tar.bz2
forums-eb92b9c4093b064a8a4b5166464e5d1e792367b3.tar.xz
forums-eb92b9c4093b064a8a4b5166464e5d1e792367b3.zip
sigh ....
git-svn-id: file:///svn/phpbb/trunk@2187 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/post.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/phpBB/includes/post.php b/phpBB/includes/post.php
index 3e32d275a8..1963437b57 100644
--- a/phpBB/includes/post.php
+++ b/phpBB/includes/post.php
@@ -569,7 +569,7 @@ function user_notification($mode, &$post_data, &$forum_id, &$topic_id, &$post_id
if ( $mode == "reply" )
{
$sql = "SELECT ban_userid
- FROM " . BANLIST_TABLE;
+ FROM " . BANLIST_TABLE . ";
if ( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, "", "", __LINE__, __FILE__, $sql);
@@ -578,7 +578,10 @@ function user_notification($mode, &$post_data, &$forum_id, &$topic_id, &$post_id
$user_id_sql = "";
while ( $row = $db->sql_fetchrow($result) )
{
- $user_id_sql = ", " . $row['ban_userid'];
+ if ( isset($row['ban_user_id']) )
+ {
+ $user_id_sql = ", " . $row['ban_userid'];
+ }
}
$sql = "SELECT u.user_id, u.username, u.user_email, u.user_lang, t.topic_title