diff options
author | Thomas Tanghus <thomas@tanghus.net> | 2012-01-09 23:16:07 +0100 |
---|---|---|
committer | Thomas Tanghus <thomas@tanghus.net> | 2012-01-09 23:16:07 +0100 |
commit | 60653c05440121a149a2709d719060cf77c2c58d (patch) | |
tree | 801aeb3c8a8682cf71a528e70efb15454283a5fe | |
parent | aadb81a32ac521058cb4bafe052f39f24ac9dc8e (diff) | |
download | nextcloud-server-60653c05440121a149a2709d719060cf77c2c58d.tar.gz nextcloud-server-60653c05440121a149a2709d719060cf77c2c58d.zip |
Return standard thumbnail even if contact couldn't be found as it could be because it was just added,
-rw-r--r-- | apps/contacts/thumbnail.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apps/contacts/thumbnail.php b/apps/contacts/thumbnail.php index 622718d65c6..e49098ce820 100644 --- a/apps/contacts/thumbnail.php +++ b/apps/contacts/thumbnail.php @@ -46,8 +46,8 @@ $l10n = new OC_L10N('contacts'); $card = OC_Contacts_VCard::find( $id ); if( $card === false ){ - OC_Log::write('contacts','thumbnail.php. Contact could not be found.',OC_Log::ERROR); - //echo $l10n->t('Contact could not be found.'); + OC_Log::write('contacts','thumbnail.php. Contact could not be found: '.$id,OC_Log::ERROR); + getStandardImage(); exit(); } @@ -55,7 +55,6 @@ if( $card === false ){ $addressbook = OC_Contacts_Addressbook::find( $card['addressbookid'] ); if( $addressbook === false || $addressbook['userid'] != OC_USER::getUser()){ OC_Log::write('contacts','thumbnail.php. Wrong contact/addressbook - WTF?',OC_Log::ERROR); - //echo $l10n->t('This is not your contact.'); // This is a weird error, why would it come up? (Better feedback for users?) exit(); } |