Index: branches/5.2.x/core/units/admin/admin_events_handler.php =================================================================== diff -u -N -r15539 -r15618 --- branches/5.2.x/core/units/admin/admin_events_handler.php (.../admin_events_handler.php) (revision 15539) +++ branches/5.2.x/core/units/admin/admin_events_handler.php (.../admin_events_handler.php) (revision 15618) @@ -1,6 +1,6 @@ Conn->Query($sql); $this->Application->SetVar('sql_time', round(microtime(true) - $start, 7)); - if ( $result ) { - if ( is_array($result) ) { - $this->Application->SetVar('sql_has_rows', 1); - $this->Application->SetVar('sql_rows', serialize($result)); - } + if ( $result && is_array($result) ) { + $this->Application->SetVar('sql_has_rows', 1); + $this->Application->SetVar('sql_rows', serialize($result)); } $check_sql = trim(strtolower($sql));