summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-08 14:09:51 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-08-08 14:09:51 +0000
commit0d18cd681b5e5ed8e5df7d6303255a176b94bd33 (patch)
treebd8159a49a8f811832f9dced70c865e575aa8a5c /includes
parent39475692da16a1542dfa33c7185d21114bdbf698 (diff)
downloadbrdo-0d18cd681b5e5ed8e5df7d6303255a176b94bd33.tar.gz
brdo-0d18cd681b5e5ed8e5df7d6303255a176b94bd33.tar.bz2
#543594 by Damien Tournoud: Bubble up exceptions in PDO.
Diffstat (limited to 'includes')
-rw-r--r--includes/common.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/common.inc b/includes/common.inc
index bad796820..7a94a7972 100644
--- a/includes/common.inc
+++ b/includes/common.inc
@@ -790,7 +790,7 @@ function _drupal_decode_exception($exception) {
// or in one of its global functions.
$db_functions = array('db_query', 'pager_query', 'db_query_range', 'db_query_temporary', 'update_sql');
while (!empty($backtrace[1]) && ($caller = $backtrace[1]) &&
- ((isset($caller['class']) && (strpos($caller['class'], 'Query') !== FALSE || strpos($caller['class'], 'Database') !== FALSE || $caller['class'] == 'PDOStatement')) ||
+ ((isset($caller['class']) && (strpos($caller['class'], 'Query') !== FALSE || strpos($caller['class'], 'Database') !== FALSE || strpos($caller['class'], 'PDO') !== FALSE)) ||
in_array($caller['function'], $db_functions))) {
// We remove that call.
array_shift($backtrace);