Fix un-necessary PHP Notices being generated in the error log files.

This commit is contained in:
jgen
2014-02-21 20:36:19 -05:00
parent e0bf45788e
commit 43f59cc4c0
4 changed files with 9 additions and 3 deletions

View File

@@ -600,7 +600,7 @@ $_execs = 0;
*/
function _count_execs($db, $sql, $inputarray) {
global $_execs;
if ((defined(DEBUG_SQL) && DEBUG_SQL === true) || (is_null(DEBUG_SQL) && @$_GET['DEBUG_SQL'])) {
if (defined(DEBUG_SQL) && (DEBUG_SQL === true || (is_null(DEBUG_SQL) && @$_GET['DEBUG_SQL'])) {
$fp = @fopen("data/sql.log", "a");
if($fp) {
if(isset($inputarray) && is_array($inputarray)) {