1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2024-12-23 02:04:46 +02:00

[Web] fix wrong log type on PDOException

This commit is contained in:
FreddleSpl0it 2024-08-12 10:10:33 +02:00
parent 73d60eb085
commit c034f4bd27
No known key found for this signature in database
GPG Key ID: 00E14E7634F4BEC5

View File

@ -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()
);