Fix bug where errors were not printed when using bin/update.sh (#5834)

Don't pass errors to rcmail_install::raise_error() in CLI mode.
pull/5890/head
Aleksander Machniak 7 years ago
parent 16e979e9d5
commit 147861ec37

@ -10,6 +10,7 @@ CHANGELOG Roundcube Webmail
- Fix bug where a.button style from managesieve plugin could impact other elements (#5800)
- Fix position of selected icon for (Mailvelope) Encrypt button
- Fix fatal error when using DMY- or MDY-based date format in PostgreSQL (#5808)
- Fix bug where errors were not printed when using bin/update.sh (#5834)
RELEASE 1.3.0
-------------

@ -1288,15 +1288,15 @@ class rcube
$arg['code'] = 500;
}
$cli = php_sapi_name() == 'cli';
// installer
if (class_exists('rcmail_install', false)) {
if (!$cli && class_exists('rcmail_install', false)) {
$rci = rcmail_install::get_instance();
$rci->raise_error($arg);
return;
}
$cli = php_sapi_name() == 'cli';
if (($log || $terminate) && !$cli && $arg['message']) {
$arg['fatal'] = $terminate;
self::log_bug($arg);

Loading…
Cancel
Save