Skip to content

Commit

Permalink
Merge pull request #5215 from goodygh/5136-fix-logger-error-handling
Browse files Browse the repository at this point in the history
[web] logger pdo exception handling workaround
  • Loading branch information
FreddleSpl0it committed Jul 10, 2023
2 parents a0723f6 + 9752313 commit cf239dd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions data/web/inc/functions.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -526,8 +526,9 @@ function logger($_data = false) {
':remote' => get_remote_ip()
));
}
catch (Exception $e) {
// Do nothing
catch (PDOException $e) {
# handle the exception here, as the exception handler function results in a white page
error_log($e->getMessage(), 0);
}
}
}
Expand Down

0 comments on commit cf239dd

Please sign in to comment.