summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dd480b4)
raw | patch | inline | side by side (parent: dd480b4)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 19 Sep 2007 06:30:13 +0000 (06:30 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 19 Sep 2007 06:30:13 +0000 (06:30 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7320 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/users/tabs_user.inc | patch | blob | history |
index ecc70d05b982d0bec259cb88c6c23921a7795c19..8f52449854ef88cd2b53671072d7e9e87ef2ad9f 100644 (file)
}
}
}
+
+ /* Move number from fax plugin */
if ($this->last == "gofaxAccount"){
- /* Move number from fax plugin */
$this->by_object['user']->facsimileTelephoneNumber=
$this->by_object['gofaxAccount']->facsimileTelephoneNumber;
}
+
+ /* Move number from fax plugin */
if ($this->last == "phoneAccount" && $this->by_object['phoneAccount']->is_account){
- /* Move number from fax plugin */
reset($this->by_object['phoneAccount']->phoneNumbers);
$number= key($this->by_object['phoneAccount']->phoneNumbers);
- $this->by_object['user']->telephoneNumber= $number;
+
+ /* Only the first phoneAccount number, if it is not empty */
+ if(!empty($number)){
+ $this->by_object['user']->telephoneNumber= $number;
+ }
}
/* Possibly change acl base */