diff options
author | n-peugnet <n.peugnet@free.fr> | 2020-04-28 21:25:51 +0200 |
---|---|---|
committer | n-peugnet <n.peugnet@free.fr> | 2020-04-28 21:25:51 +0200 |
commit | 1619c194a32c1496f9015a491f5fa9dff350d47e (patch) | |
tree | eb88861b02820ee43104e822603293ebf23c58bb /app/class/User.php | |
parent | 3ba521e5d60a05510aa97d826215b7660d3dcb59 (diff) | |
download | wcms-1619c194a32c1496f9015a491f5fa9dff350d47e.tar.gz wcms-1619c194a32c1496f9015a491f5fa9dff350d47e.zip |
fix: never catch LogicExceptions except in index
Diffstat (limited to 'app/class/User.php')
-rw-r--r-- | app/class/User.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/class/User.php b/app/class/User.php index b2b6193..efd89ae 100644 --- a/app/class/User.php +++ b/app/class/User.php @@ -4,6 +4,7 @@ namespace Wcms; use DateTimeImmutable; use DateTimeZone; +use RuntimeException; class User extends Item { @@ -203,7 +204,7 @@ class User extends Item function ($datas) { try { return new Bookmark($datas); - } catch (\Throwable $th) { + } catch (RuntimeException $e) { return false; } }, |