Fix the Notice being generated.

This commit is contained in:
jgen 2014-02-19 03:11:46 -05:00
parent a90f5bed8e
commit cb135d4763

View File

@ -600,7 +600,7 @@ $_execs = 0;
*/
function _count_execs($db, $sql, $inputarray) {
global $_execs;
if((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)) {