Skip to content

Commit d8ad1a4

Browse files
committed
Bail out early after a exception is thrown
1 parent 8846b96 commit d8ad1a4

File tree

1 file changed

+1
-0
lines changed
  • libs/Database/Database/Query

1 file changed

+1
-0
lines changed

libs/Database/Database/Query/pdo.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ public function execute() {
7878
} catch(PDOException $e) {
7979
$this->last_exception = $e;
8080
$this->db->error('SQL Error:');
81+
return false;
8182
} // end try
8283
$after = microtime(true);
8384
$this->db->mysql_time += $after - $before;

0 commit comments

Comments
 (0)