From c034f4bd27738c22d48075260c3e73e0f040dbe8 Mon Sep 17 00:00:00 2001 From: FreddleSpl0it Date: Mon, 12 Aug 2024 10:10:33 +0200 Subject: [PATCH] [Web] fix wrong log type on PDOException --- data/web/inc/functions.mailbox.inc.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/data/web/inc/functions.mailbox.inc.php b/data/web/inc/functions.mailbox.inc.php index af11a47d5..c6e789d81 100644 --- a/data/web/inc/functions.mailbox.inc.php +++ b/data/web/inc/functions.mailbox.inc.php @@ -1328,9 +1328,9 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) { try { update_sogo_static_view($username); - }catch (PDOException $e) { + } catch (PDOException $e) { $_SESSION['return'][] = array( - 'type' => 'success', + 'type' => 'danger', 'log' => array(__FUNCTION__, $_action, $_type, $_data_log, $_attr), 'msg' => $e->getMessage() ); @@ -3257,9 +3257,9 @@ function mailbox($_action, $_type, $_data = null, $_extra = null) { try { update_sogo_static_view($username); - }catch (PDOException $e) { + } catch (PDOException $e) { $_SESSION['return'][] = array( - 'type' => 'success', + 'type' => 'danger', 'log' => array(__FUNCTION__, $_action, $_type, $_data_log, $_attr), 'msg' => $e->getMessage() );