[geeklog-hg] geeklog: Fix for changeset 1f05c38a1958
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Wed Sep 18 22:00:31 EDT 2013
changeset 9306:b47e913d09d6
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/b47e913d09d6
user: Tom <websitemaster at cogeco.net>
date: Wed Sep 18 21:39:48 2013 -0400
description:
Fix for changeset 1f05c38a1958
diffstat:
system/lib-topic.php | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 1f05c38a1958 -r b47e913d09d6 system/lib-topic.php
--- a/system/lib-topic.php Wed Sep 18 21:30:30 2013 -0400
+++ b/system/lib-topic.php Wed Sep 18 21:39:48 2013 -0400
@@ -1192,10 +1192,13 @@
}
// See if user has access to view topic
if ($topic != '') {
- if (strtolower($topic) != strtolower(DB_getItem($_TABLES['topics'], 'tid', "tid = '$topic' " . COM_getPermSQL('AND')))) {
+ $test_topic = DB_getItem($_TABLES['topics'], 'tid', "tid = '$topic' " . COM_getPermSQL('AND'));
+ if (strtolower($topic) != strtolower($test_topic)) {
$topic = '';
- }
- }
+ } else { // Make it equal to the db version since case maybe different
+ $topic = $test_topic;
+ }
+ }
// Check and return Previous topic
if ($topic == '') {
More information about the geeklog-cvs
mailing list