From 5dfacede3f0ccbe491283d25e78af7d848e9942b Mon Sep 17 00:00:00 2001 From: Aleksander Machniak Date: Thu, 17 Nov 2016 11:17:09 +0100 Subject: [PATCH] Make sure $prefs property is an array (#5523) --- program/lib/Roundcube/rcube_imap_generic.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/program/lib/Roundcube/rcube_imap_generic.php b/program/lib/Roundcube/rcube_imap_generic.php index 3d11f380124..ac3a5fd248f 100644 --- a/program/lib/Roundcube/rcube_imap_generic.php +++ b/program/lib/Roundcube/rcube_imap_generic.php @@ -50,10 +50,10 @@ class rcube_imap_generic protected $fp; protected $host; - protected $prefs; protected $cmd_tag; protected $cmd_num = 0; protected $resourceid; + protected $prefs = array(); protected $logged = false; protected $capability = array(); protected $capability_readed = false; @@ -805,7 +805,7 @@ public function getNamespace() * * @return bool True on success, False on failure */ - public function connect($host, $user, $password, $options = null) + public function connect($host, $user, $password, $options = array()) { // configure $this->set_prefs($options);