From 475297b98ba6d106adf3c286d48853537bc020a3 Mon Sep 17 00:00:00 2001 From: areaeuro <30721699+areaeuro@users.noreply.github.com> Date: Wed, 30 May 2018 12:29:02 +0200 Subject: [PATCH] Update card.php Line 714 - conditional to delete thirdparty logos $object->photo does not exits, and should read $object->logo This appears to be an oversight, as it is correct in the rest of the file --- htdocs/societe/card.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/societe/card.php b/htdocs/societe/card.php index 01f5a13b39f..db88ccee4ce 100644 --- a/htdocs/societe/card.php +++ b/htdocs/societe/card.php @@ -711,7 +711,7 @@ if (empty($reshook)) // Logo/Photo save $dir = $conf->societe->multidir_output[$object->entity]."/".$object->id."/logos"; $file_OK = is_uploaded_file($_FILES['photo']['tmp_name']); - if (GETPOST('deletephoto') && $object->photo) + if (GETPOST('deletephoto') && $object->logo) { $fileimg=$dir.'/'.$object->logo; $dirthumbs=$dir.'/thumbs';