projects
/
racktables
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ebf5533
)
r4345 printException(): use instanceof uniformly
author
Denis Ovsienko
<infrastation@yandex.ru>
Wed, 16 Mar 2011 21:41:00 +0000
(21:41 +0000)
committer
Denis Ovsienko
<infrastation@yandex.ru>
Wed, 16 Mar 2011 21:41:00 +0000
(21:41 +0000)
wwwroot/inc/exceptions.php
patch
|
blob
|
blame
|
history
diff --git
a/wwwroot/inc/exceptions.php
b/wwwroot/inc/exceptions.php
index 1d2807c586ae1afb696874260492f3e646672e42..da830cd93d06b1c1e5341dc8619bae61bce963f1 100644
(file)
--- a/
wwwroot/inc/exceptions.php
+++ b/
wwwroot/inc/exceptions.php
@@
-228,7
+228,7
@@
function printException($e)
{
if ($e instanceof RackTablesError)
$e->dispatch();
- elseif (
get_class($e) == 'PDOException'
)
+ elseif (
$e instanceof PDOException
)
printPDOException($e);
else
printGenericException($e);