diff --git a/ajax/saveproperty.php b/ajax/saveproperty.php index 272a3f9b..112d9031 100644 --- a/ajax/saveproperty.php +++ b/ajax/saveproperty.php @@ -71,6 +71,11 @@ if(is_array($value)){ } else { $value = trim(strip_tags($value)); } +if(!$value) { + bailOut(OC_Contacts_App::$l10n->t('Cannot save empty value.')); +} + +debug('Element: '.$name.', value: '.print_r($value, true)); $vcard = OC_Contacts_App::getContactVCard( $id ); $line = OC_Contacts_App::getPropertyLineByChecksum($vcard, $checksum); diff --git a/templates/part.contact.php b/templates/part.contact.php index a1acb20b..a93069fa 100644 --- a/templates/part.contact.php +++ b/templates/part.contact.php @@ -51,11 +51,11 @@ $id = isset($_['id']) ? $_['id'] : '';
- + - + - + @@ -100,7 +100,7 @@ $id = isset($_['id']) ? $_['id'] : ''; - + @@ -112,7 +112,7 @@ $id = isset($_['id']) ? $_['id'] : '';