[geeklog-cvs] geeklog: Ensure proper error logging when an SQL error occurs ea...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sat Jan 29 09:31:19 EST 2011


changeset 8079:a6e259d6ff3f
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/a6e259d6ff3f
user: Dirk Haun <dirk at haun-online.de>
date: Sat Jan 29 12:47:11 2011 +0100
description:
Ensure proper error logging when an SQL error occurs early on

diffstat:

 public_html/lib-common.php |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (14 lines):

diff -r e36f294d2c9b -r a6e259d6ff3f public_html/lib-common.php
--- a/public_html/lib-common.php	Thu Jan 27 11:28:11 2011 -0500
+++ b/public_html/lib-common.php	Sat Jan 29 12:47:11 2011 +0100
@@ -2029,6 +2029,10 @@
                 (($actionid == 2) || empty($actionid))) {
             $actionid = 1;
         }
+        if ((($actionid == 2) || empty($actionid)) &&
+                !class_exists('Template')) {
+            $actionid = 1;
+        }
         if (!isset($_CONF['path_log']) && ($actionid != 2)) {
             $actionid = 3;
         }



More information about the geeklog-cvs mailing list