summaryrefslogtreecommitdiff
path: root/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2015-02-18 07:30:48 -0500
committerAleksander Machniak <alec@alec.pl>2015-02-18 07:30:48 -0500
commit3e0ad293e118a078d227ca15aaab7cf6cbdb0851 (patch)
tree6a6a51887d014942c1bf4f9f3085cc7e98252db6 /plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php
parent701ef30c28a9db9a1ec905d3911a1fa346d1d010 (diff)
Fix PHP fatal error when visiting Vacation interface and there's no sieve script yet
Diffstat (limited to 'plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php')
-rw-r--r--plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php b/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php
index d412e17db..69ae4b8a6 100644
--- a/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php
+++ b/plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php
@@ -2344,12 +2344,12 @@ class rcube_sieve_engine
*/
protected function init_script()
{
- $this->script = $this->sieve->script->as_array();
-
- if (!$this->script) {
+ if (!$this->sieve->script) {
return;
}
+ $this->script = $this->sieve->script->as_array();
+
$headers = array();
$exceptions = array('date', 'currentdate', 'size', 'body');