r4345 printException(): use instanceof uniformly
authorDenis Ovsienko <infrastation@yandex.ru>
Wed, 16 Mar 2011 21:41:00 +0000 (21:41 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Wed, 16 Mar 2011 21:41:00 +0000 (21:41 +0000)
wwwroot/inc/exceptions.php

index 1d2807c586ae1afb696874260492f3e646672e42..da830cd93d06b1c1e5341dc8619bae61bce963f1 100644 (file)
@@ -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);