Skip to content

Commit 813b1ac

Browse files
committed
Check for instanceof Exception instead of class name in pods_error
1 parent 9018f7f commit 813b1ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

includes/general.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ function pods_error( $error, $obj = null ) {
271271
$error_mode = $display_errors;
272272
}
273273

274-
if ( is_object( $error ) && 'Exception' === get_class( $error ) ) {
274+
if ( is_object( $error ) && $error instanceof Exception ) {
275275
$error_mode = 'exception';
276276

277277
if ( 'final_exception' === $display_errors ) {

0 commit comments

Comments
 (0)