[geeklog-hg] geeklog: Fixed an issue that does not initialize the variable la...
geeklog-cvs at lists.geeklog.net
geeklog-cvs at lists.geeklog.net
Tue Jun 25 13:30:40 EDT 2013
changeset 9125:3df30684968f
url: http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/3df30684968f
user: dengen
date: Wed Jun 26 02:29:52 2013 +0900
description:
Fixed an issue that does not initialize the variable last_topic_update
diffstat:
public_html/lib-common.php | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
diffs (17 lines):
diff -r 5315d634cb44 -r 3df30684968f public_html/lib-common.php
--- a/public_html/lib-common.php Tue Jun 25 23:34:03 2013 +0900
+++ b/public_html/lib-common.php Wed Jun 26 02:29:52 2013 +0900
@@ -519,8 +519,12 @@
}
}
// See if Topic Tree has changed for users, if so rebuild tree
-if ($last_topic_update > $topic_tree_date) {
+if ($last_topic_update > $topic_tree_date || empty($last_topic_update)) {
$_TOPICS = TOPIC_buildTree(TOPIC_ROOT, true);
+ if (empty($last_topic_update)) {
+ TOPIC_updateLastTopicUpdate();
+ $last_topic_update = DB_getItem($_TABLES['vars'], 'value', "name='last_topic_update'");
+ }
// Save updated topic tree and date
if ($_CONF['cache_templates']) {
More information about the geeklog-cvs
mailing list