[geeklog-hg] geeklog: Fixed a few undeclared variables that I had missed.

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Thu Jun 27 12:44:40 EDT 2013


changeset 9140:0021a62e1a8e
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/0021a62e1a8e
user: Tom <websitemaster at cogeco.net>
date: Thu Jun 27 12:44:19 2013 -0400
description:
Fixed a few undeclared variables that I had missed.

diffstat:

 public_html/admin/index.php |  2 +-
 system/lib-plugins.php      |  2 +-
 system/lib-story.php        |  8 ++++----
 system/lib-topic.php        |  2 ++
 4 files changed, 8 insertions(+), 6 deletions(-)

diffs (61 lines):

diff -r 0774434702ba -r 0021a62e1a8e public_html/admin/index.php
--- a/public_html/admin/index.php	Thu Jun 27 12:35:03 2013 -0400
+++ b/public_html/admin/index.php	Thu Jun 27 12:44:19 2013 -0400
@@ -306,7 +306,7 @@
 }
 
 
-$display .= COM_showMessageFromParameter()
+$display = COM_showMessageFromParameter()
          .  security_check_reminder()
          .  commandcontrol(SEC_createToken());
 
diff -r 0774434702ba -r 0021a62e1a8e system/lib-plugins.php
--- a/system/lib-plugins.php	Thu Jun 27 12:35:03 2013 -0400
+++ b/system/lib-plugins.php	Thu Jun 27 12:44:19 2013 -0400
@@ -2025,7 +2025,7 @@
 */
 function PLG_getRelatedItems($types, $tids, $max, $trim)
 {
-    global $_PLUGINS;
+    global $_PLUGINS, $_CONF;
 
     $relateditems =  array();
     $returneditems =  array();
diff -r 0774434702ba -r 0021a62e1a8e system/lib-story.php
--- a/system/lib-story.php	Thu Jun 27 12:35:03 2013 -0400
+++ b/system/lib-story.php	Thu Jun 27 12:44:19 2013 -0400
@@ -882,10 +882,10 @@
 {
     global $_CONF, $_TABLES;
 
-    $archsql = '';
-    $archivetid = DB_getItem( $_TABLES['topics'], 'tid', "archive_flag=1" );
-    if(!empty( $archivetid )) {
-        $where_sql .= " AND (ta.tid <> '$archivetid')";
+    $where_sql = '';
+    $archivetid = DB_getItem($_TABLES['topics'], 'tid', "archive_flag=1");
+    if (!empty($archivetid)) {
+        $where_sql = " AND (ta.tid <> '$archivetid')";
     }
 
     // Find the newest stories the user has access too
diff -r 0774434702ba -r 0021a62e1a8e system/lib-topic.php
--- a/system/lib-topic.php	Thu Jun 27 12:35:03 2013 -0400
+++ b/system/lib-topic.php	Thu Jun 27 12:44:19 2013 -0400
@@ -1697,6 +1697,7 @@
             $type = '';
             $max = $_CONF['related_topics_max']; // Article Default
             $tids = array();
+            $skip = 0;
             
             $px = explode (' ', trim ($autotag['parm2']));
             if (is_array ($px)) {
@@ -1741,6 +1742,7 @@
             $trim = 0;
             $include_types = array();
             $tids = array();
+            $skip = 0;
             
             $px = explode (' ', trim ($autotag['parm2']));
             if (is_array ($px)) {



More information about the geeklog-cvs mailing list