diff --git a/library/includes/core/mysql.php b/library/includes/core/mysql.php index 2e9fdf69..4369695e 100644 --- a/library/includes/core/mysql.php +++ b/library/includes/core/mysql.php @@ -778,7 +778,7 @@ class sql_db $this->sql_timetotal += $this->cur_query_time; $this->DBS['sql_timetotal'] += $this->cur_query_time; - if (SQL_LOG_SLOW_QUERIES && $this->cur_query_time > $this->slow_time) + if (SQL_LOG_SLOW_QUERIES && ($this->cur_query_time > $this->slow_time)) { $this->log_slow_query(); }