pushing an array onto the end of an array is not what was intended; we wanted the elements of the latter appended to the first

This commit is contained in:
Klaus Leithoff 2014-09-19 14:04:24 +00:00
parent 53a579bab8
commit 72c2b67eb5

View File

@ -323,7 +323,9 @@ class emailadmin_sieve extends Net_Sieve
$methods = array();
if($userMethod != null ){
$methods[] = $userMethod;
array_push($methods,$this->supportedAuthMethods);
foreach ( $this->supportedAuthMethods as $method ) {
$methods[]=$method;
}
}else{
$methods = $this->supportedAuthMethods;
}