From 4a14e0d36b1fae523cd8253638ca00d634d5e81a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Wed, 19 Feb 2020 15:39:13 +0100 Subject: [PATCH] ignore exception, as it blocks session creation, if database is not writable --- api/src/Session.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/api/src/Session.php b/api/src/Session.php index 5388376ee7..3cabed08ed 100644 --- a/api/src/Session.php +++ b/api/src/Session.php @@ -252,7 +252,13 @@ class Session $config->value('num_unsuccessful_ip',$GLOBALS['egw_info']['server']['num_unsuccessful_ip']); $config->value('install_id',$GLOBALS['egw_info']['server']['install_id']); $config->value('max_history',$GLOBALS['egw_info']['server']['max_history']); - $config->save_repository(); + try + { + $config->save_repository(); + } + catch (Db\Exception $e) { + _egw_log_exception($e); // ignore exception, as it blocks session creation, if database is not writable + } } } self::set_cookiedomain();