[geeklog-cvs] geeklog: Only display SQL error details when $this->_display_err...

geeklog-cvs at lists.geeklog.net geeklog-cvs at lists.geeklog.net
Sun Sep 18 10:26:01 EDT 2011


changeset 8413:a9e64231d8b5
url:  http://project.geeklog.net/cgi-bin/hgwebdir.cgi/geeklog/rev/a9e64231d8b5
user: Dirk Haun <dirk at haun-online.de>
date: Sun Sep 18 13:27:39 2011 +0200
description:
Only display SQL error details when $this->_display_error is set (left over debug code?)

diffstat:

 system/databases/mssql.class.php |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r c4f95191b80d -r a9e64231d8b5 system/databases/mssql.class.php
--- a/system/databases/mssql.class.php	Sun Sep 11 09:18:00 2011 +0200
+++ b/system/databases/mssql.class.php	Sun Sep 18 13:27:39 2011 +0200
@@ -996,7 +996,7 @@
                 $this->_errorlog('Column Renamed: "' . $msg . '" SQL in question: ' . $sql);
             } else {
                 $this->_errorlog($msg . ': ' . $msg . ". SQL in question: $sql");        
-                if (true ||$this->_display_error) {
+                if ($this->_display_error) {
                     return  $msg . ': ' . $sql;
                 } else {
                     return 'An SQL error has occurred. Please see error.log for details.';



More information about the geeklog-cvs mailing list