diff --git a/common/framework/db.php b/common/framework/db.php index 45b0fffeb..55dba31cd 100644 --- a/common/framework/db.php +++ b/common/framework/db.php @@ -335,10 +335,14 @@ class DB $this->_total_time += (microtime(true) - $start_time); return $output; } - else + elseif ($query->type === 'SELECT') { $result = $this->_fetch($this->_last_stmt, $last_index, $result_type); } + else + { + $result = null; + } } catch (Exceptions\DBError $e) {