Added sanity check for loggable_query variable
This commit is contained in:
parent
ed90ee3501
commit
d8e6c43868
1 changed files with 1 additions and 1 deletions
|
@ -227,7 +227,7 @@ class Database_PDO_Common extends Database_Common
|
|||
$end_time = microtime(true);
|
||||
$duration = $end_time - $start_time;
|
||||
|
||||
if ($duration >= 1)
|
||||
if ($duration >= 1 && isset($loggable_query))
|
||||
{
|
||||
Log::slowQuery($duration . ' seconds: ' . $loggable_query);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue