Commit 51a968f0 authored by Ben Cooksley's avatar Ben Cooksley
Browse files

Handle no secondary email addresses being set properly

parent f7f25794
......@@ -46,7 +46,10 @@ class evinfo extends plugin
$vms = array("Active", "Extraordinary", "Supporting");
$this->validMemberStatus = $this->prepareValid($vms);
$vms = array_merge( $this->attrs['mail'], $this->attrs['gosaMailAlternateAddress'] );
$vms = $this->attrs['mail'];
if( $this->attrs['gosaMailAlternateAddress'] ) {
$vms = array_merge( $vms, $this->attrs['gosaMailAlternateAddress'] );
}
unset( $vms['count'] );
$this->validEvMail = $this->prepareValid($vms);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment