Skip to content

Commit 842cc01

Browse files
committed
Managesieve: Fix current script state after initial scripts creation in managesieve_kolab_master mode
1 parent 3e4894e commit 842cc01

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
- Fix current script state after initial scripts creation in managesieve_kolab_master mode
6+
7+
## Release 1.5.9
8+
59
- Fix regression where printing/scaling/rotating image attachments was broken (#9571)
610
- Fix regression where HTML messages were displayed unstyled (#9586)
711

plugins/managesieve/Changelog

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
- Fix current script state after initial scripts creation in managesieve_kolab_master mode
2+
13
* version 9.4 [2021-06-06]
24
-----------------------------------------------------------
35
- Add ability to remove 'redirect' option from UI (#7922)

plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,14 +248,14 @@ protected function load_script($script_name = null)
248248
if ($script_name === null || $script_name === '') {
249249
// get (first) active script
250250
if (!empty($this->active)) {
251-
$script_name = $this->active[0];
251+
$script_name = $this->active[0];
252252
}
253-
else if ($list) {
253+
else if (!empty($list)) {
254254
$script_name = $list[0];
255255
}
256256
else {
257257
// if script does not exist create one with default content
258-
$this->create_default_script();
258+
$script_name = $this->create_default_script();
259259
}
260260
}
261261

0 commit comments

Comments
 (0)