[geeklog-hg] geeklog: Fixed a bug where deleting a Comment with a Notificatio...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Mon Dec 31 10:05:10 EST 2012
changeset 8906:6d815459f12f
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/6d815459f12f
user: Kenji ITO <mystralkk at gmail.com>
date: Fri Dec 28 20:52:06 2012 +0900
description:
Fixed a bug where deleting a Comment with a Notification fails (bug #1529)
diffstat:
system/lib-comment.php | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (23 lines):
diff -r 61bae85ccbfb -r 6d815459f12f system/lib-comment.php
--- a/system/lib-comment.php Sun Dec 30 18:15:50 2012 +0100
+++ b/system/lib-comment.php Fri Dec 28 20:52:06 2012 +0900
@@ -1545,17 +1545,17 @@
. "WHERE sid = '$sid' AND type = '$type' AND lft >= $rht");
DB_query("UPDATE {$_TABLES['comments']} SET rht = rht - 2 "
. "WHERE sid = '$sid' AND type = '$type' AND rht >= $rht");
+ DB_unlockTable ($_TABLES['comments']);
// Update Comment Feeds
COM_rdfUpToDateCheck('comment');
} else {
+ DB_unlockTable ($_TABLES['comments']);
COM_errorLog("CMT_deleteComment: {$_USER['uid']} from {$_SERVER['REMOTE_ADDR']} tried "
. 'to delete a comment that doesn\'t exist as described.');
return $ret = 2;
}
- DB_unlockTable ($_TABLES['comments']);
-
return $ret;
}
More information about the geeklog-cvs
mailing list