- fix warning when importing squirrelmail rules

release-0.6
alecpl 15 years ago
parent 11ea2ac890
commit e8d8b6fd86

@ -117,7 +117,7 @@ class rcube_sieve
$script = $this->_convert_from_squirrel_rules($script); $script = $this->_convert_from_squirrel_rules($script);
$this->script = new rcube_sieve_script($script); $this->script = new rcube_sieve_script($script, $this->disabled);
$this->save(); $this->save();
@ -184,7 +184,7 @@ class rcube_sieve_script
* @param string Script's text content * @param string Script's text content
* @param array Disabled extensions * @param array Disabled extensions
*/ */
public function __construct($script, $disabled) public function __construct($script, $disabled=NULL)
{ {
if (!empty($disabled)) if (!empty($disabled))
foreach ($disabled as $ext) foreach ($disabled as $ext)

Loading…
Cancel
Save