From 111b54d82c689f96944e80adddd6f88ab5f095cd Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sun, 19 Apr 2015 03:02:49 +0200 Subject: [PATCH] Fix phpcs --- dev/translation/sanity_check_en_langfiles.php | 3 +-- htdocs/core/modules/modFournisseur.class.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/dev/translation/sanity_check_en_langfiles.php b/dev/translation/sanity_check_en_langfiles.php index b1ccca39dee..fdc0f738431 100644 --- a/dev/translation/sanity_check_en_langfiles.php +++ b/dev/translation/sanity_check_en_langfiles.php @@ -218,5 +218,4 @@ if ($_REQUEST['unused'] == 'true') { print_r($unused); } echo ""; -echo ""; -?> \ No newline at end of file +echo ""; \ No newline at end of file diff --git a/htdocs/core/modules/modFournisseur.class.php b/htdocs/core/modules/modFournisseur.class.php index dc537426179..13ef54c1770 100644 --- a/htdocs/core/modules/modFournisseur.class.php +++ b/htdocs/core/modules/modFournisseur.class.php @@ -258,7 +258,7 @@ class modFournisseur extends DolibarrModules $this->rights[$r][4] = 'commande'; $this->rights[$r][5] = 'export'; - if ($conf->global->SUPPLIER_ORDER_DOUBLE_APPROVAL) + if (! empty($conf->global->SUPPLIER_ORDER_DOUBLE_APPROVAL)) { $r++; $this->rights[$r][0] = 1190;