From 1ba6c7a17e75b83486fbe119a921199fa82a3303 Mon Sep 17 00:00:00 2001 From: oldperl Date: Wed, 30 Aug 2017 12:04:58 +0000 Subject: [PATCH] write query log file online in debug mode --- trunk/conlite/includes/functions.database.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/conlite/includes/functions.database.php b/trunk/conlite/includes/functions.database.php index 48bde6b..107261a 100644 --- a/trunk/conlite/includes/functions.database.php +++ b/trunk/conlite/includes/functions.database.php @@ -233,9 +233,9 @@ function dbUpgradeTable($db, $table, $field, $type, $null, $key, $default, $extr " . $parameter['NULL'] . " " . $parameter['DEFAULT'] . " " . $parameter['KEY']; $db->query($createField); $sDebugData = sprintf("%s:%s:ErrorNo. %s:%s\n", $createField, $parameter['DEFAULT'], $db->getErrorNumber(), $db->getErrorMessage()); - file_put_contents('../data/logs/setup_queries.txt', $sDebugData, FILE_APPEND); if ($bDebug) { + file_put_contents('../data/logs/setup_queries.txt', $sDebugData, FILE_APPEND); echo 'createField:' . $createField . '
'; } $columnCache[$table] = "";