From 6469a31a32877a449157991eb1e09b1e855ef971 Mon Sep 17 00:00:00 2001 From: fmarcet Date: Thu, 29 Oct 2015 10:38:21 +0100 Subject: [PATCH] Style corrections --- htdocs/product/document.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/product/document.php b/htdocs/product/document.php index 6e953648efe..a85f5d08cd8 100644 --- a/htdocs/product/document.php +++ b/htdocs/product/document.php @@ -72,7 +72,7 @@ if ($id > 0 || ! empty($ref)) if (! empty($conf->product->enabled)) $upload_dir = $conf->product->multidir_output[$object->entity].'/'; elseif (! empty($conf->service->enabled)) $upload_dir = $conf->service->multidir_output[$object->entity].'/'; - if($conf->global->PRODUCT_USE_OLD_PATH_FOR_PHOTO)$upload_dir.= get_exdir($object->id,2,0,0,$object,'product').$object->id."/photos"; + if (! empty($conf->global->PRODUCT_USE_OLD_PATH_FOR_PHOTO)) $upload_dir.= get_exdir($object->id,2,0,0,$object,'product').$object->id."/photos"; else $upload_dir.= dol_sanitizeFileName($object->ref); } $modulepart='produit';