Browse Source

Fix phpcs

Laurent Destailleur 10 years ago
parent
commit
111b54d82c

+ 1 - 2
dev/translation/sanity_check_en_langfiles.php

@@ -218,5 +218,4 @@ if ($_REQUEST['unused'] == 'true') {
 	print_r($unused);
 }
 echo "</body>";
-echo "</html>";
-?>
+echo "</html>";

+ 1 - 1
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;