diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-07-20 17:09:03 +0200 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-07-20 17:11:13 +0200 |
commit | 7fff38667953028d499f978798b44deccbd55a84 (patch) | |
tree | fb646ef3a5b71153ad09faddd9ffe9ba1b451531 /apps/contacts/ajax/addproperty.php | |
parent | 3c2967074f0d817bff8f1d511f08aa84a9d09bde (diff) | |
download | nextcloud-server-7fff38667953028d499f978798b44deccbd55a84.tar.gz nextcloud-server-7fff38667953028d499f978798b44deccbd55a84.zip |
Code style.
Diffstat (limited to 'apps/contacts/ajax/addproperty.php')
-rw-r--r-- | apps/contacts/ajax/addproperty.php | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/contacts/ajax/addproperty.php b/apps/contacts/ajax/addproperty.php index 96f27b2b9bb..58b857547fb 100644 --- a/apps/contacts/ajax/addproperty.php +++ b/apps/contacts/ajax/addproperty.php @@ -48,10 +48,11 @@ if(!$vcard) { if(!is_array($value)) { $value = trim($value); - if(!$value && in_array( - $name, - array('TEL', 'EMAIL', 'ORG', 'BDAY', 'URL', 'NICKNAME', 'NOTE')) - ) { + if(!$value + && in_array( + $name, + array('TEL', 'EMAIL', 'ORG', 'BDAY', 'URL', 'NICKNAME', 'NOTE')) + ) { bailOut($l10n->t('Cannot add empty property.')); } } elseif($name === 'ADR') { // only add if non-empty elements. @@ -129,7 +130,7 @@ foreach ($parameters as $key=>$element) { // NOTE: Maybe this doesn't only apply for TYPE? // And it probably shouldn't be done here anyways :-/ foreach($element as $e) { - if($e != '' && !is_null($e)){ + if($e != '' && !is_null($e)) { $vcard->children[$line]->parameters[] = new Sabre_VObject_Parameter($key, $e); } } |