Re-order the events to ensure InitExtEvent() is fired off both with and without users.

This commit is contained in:
jgen
2014-02-22 01:22:14 -05:00
parent ba0aef4f30
commit e6057c656f
2 changed files with 8 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) || (!defined(DEBUG_SQL) && @$_GET['DEBUG_SQL'])) {
$fp = @fopen("data/sql.log", "a");
if($fp) {
if(isset($inputarray) && is_array($inputarray)) {