remove add (optional) $vacation_rule return parameter as it causes a PHP Fatal error in hosting

This commit is contained in:
ralf 2023-08-01 07:58:48 +02:00
parent 6b183db6e0
commit e75b89f158

View File

@ -1401,10 +1401,9 @@ class Imap extends Horde_Imap_Client_Socket implements Imap\PushIface
* @param int|string $_euser numeric account_id or imap username
* @param array $_vacation
* @param string $_scriptName =null
* @param string|null& $vacation_rule=null on return Sieve vacation rule
* @return boolean
*/
public function setVacationUser($_euser, array $_vacation, $_scriptName=null, string &$vacation_rule=null)
public function setVacationUser($_euser, array $_vacation, $_scriptName=null)
{
if ($this->debug) error_log(__METHOD__.' User:'.array2string($_euser).' Scriptname:'.array2string($_scriptName).' VacationMessage:'.array2string($_vacation));
@ -1419,9 +1418,7 @@ class Imap extends Horde_Imap_Client_Socket implements Imap\PushIface
$this->scriptName =& $this->sieve->scriptName;
$this->error =& $this->sieve->error;
}
$ret = $this->setVacation($_vacation, $_scriptName, $vacation_rule);
return $ret;
return $this->setVacation($_vacation, $_scriptName);
}
/**