[geeklog-cvs] geeklog: catch error with the default comment title when the par...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Sun May 13 04:25:28 EDT 2012
changeset 8696:e8074f11eb0d
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/e8074f11eb0d
user: Dirk Haun <dirk at haun-online.de>
date: Sun May 13 09:26:13 2012 +0200
description:
catch error with the default comment title when the parent object is not found or the user doesn't have access (cf. bug #0001445)
diffstat:
system/lib-comment.php | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r e816c374fabb -r e8074f11eb0d system/lib-comment.php
--- a/system/lib-comment.php Sun May 13 15:47:24 2012 +0900
+++ b/system/lib-comment.php Sun May 13 09:26:13 2012 +0200
@@ -2424,6 +2424,9 @@
}
if (empty($title)) {
$title = PLG_getItemInfo($type, $sid, 'title');
+ if (is_array($title)) {
+ $title = '';
+ }
$title = str_replace ( '$', '$', $title );
// CMT_commentForm expects non-htmlspecial chars for title...
$title = str_replace ( '&', '&', $title );
More information about the geeklog-cvs
mailing list