aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2001-10-10 10:45:54 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2001-10-10 10:45:54 +0000
commit36f4f7eaace992bd0eeaec3215a1a589158164a3 (patch)
tree51553f3249203912b548b898cea0f672a4a5b1a8 /phpBB/posting.php
parentdfb252e252f21f3258f39666ca6c50b6b3e716c4 (diff)
downloadforums-36f4f7eaace992bd0eeaec3215a1a589158164a3.tar
forums-36f4f7eaace992bd0eeaec3215a1a589158164a3.tar.gz
forums-36f4f7eaace992bd0eeaec3215a1a589158164a3.tar.bz2
forums-36f4f7eaace992bd0eeaec3215a1a589158164a3.tar.xz
forums-36f4f7eaace992bd0eeaec3215a1a589158164a3.zip
Fixed bug with deleting only post in forum
git-svn-id: file:///svn/phpbb/trunk@1148 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index ddc3154b35..0370b5d36a 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -1124,7 +1124,9 @@ if( ( $submit || $confirm ) && !$error )
message_die(GENERAL_ERROR, "Couldn't obtain new last post id for the forum", "", __LINE__, __FILE__, $sql);
}
- $new_last_sql = ", forum_last_post_id = " . $row['new_post_id'];
+ $last_post_id_forum = ( !empty($row['new_post_id']) ) ? $row['new_post_id'] : 0;
+
+ $new_last_sql = ", forum_last_post_id = " . $last_post_id_forum;
}
else
{