[geeklog-hg] geeklog: Fixed related_items autotag bug if only one topic was s...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Tue Sep 24 21:08:02 EDT 2013
changeset 9312:ab38896fcd60
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/ab38896fcd60
user: Tom <websitemaster at cogeco.net>
date: Tue Sep 24 21:07:31 2013 -0400
description:
Fixed related_items autotag bug if only one topic was specified.
diffstat:
system/lib-topic.php | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (18 lines):
diff -r 6b84f53d771e -r ab38896fcd60 system/lib-topic.php
--- a/system/lib-topic.php Mon Sep 23 21:42:40 2013 -0400
+++ b/system/lib-topic.php Tue Sep 24 21:07:31 2013 -0400
@@ -1766,11 +1766,10 @@
if (!empty($type) AND !empty($id)) {
// Return topics of object
$related_items = TOPIC_relatedItems($type, $id, $include_types, $max, $trim, $tids);
- } elseif (!empty($tids)) {
+ } elseif (!empty($tids) OR !empty($id)) {
// Since list of topics specified add id to topic list (since really a topic)
- if (!empty($id)) {
- $tids[] = $id;
- }
+ $tids[] = $id;
+
$related_items = TOPIC_relatedItems('', '', $include_types, $max, $trim, $tids);
}
More information about the geeklog-cvs
mailing list