DEBUG_SQL can be null for user-defined

This commit is contained in:
Shish 2012-01-31 12:16:47 +00:00
parent 4da56c12db
commit 6e6138793b

View File

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