diff --git a/htdocs/debugbar/class/autoloader.php b/htdocs/debugbar/class/autoloader.php index 81052c8fa85..80f1a8f3de6 100644 --- a/htdocs/debugbar/class/autoloader.php +++ b/htdocs/debugbar/class/autoloader.php @@ -5,8 +5,7 @@ */ spl_autoload_register(function ($class) { - if (preg_match('/^DebugBar/', $class) || preg_match('/^'.preg_quote('Psr\Log', '/').'/', $class)) - { + if (preg_match('/^DebugBar/', $class) || preg_match('/^'.preg_quote('Psr\Log', '/').'/', $class)) { $file = DOL_DOCUMENT_ROOT.'/includes/'.str_replace('\\', DIRECTORY_SEPARATOR, $class).'.php'; //var_dump($class.' - '.file_exists($file).' - '.$file); if (file_exists($file)) { diff --git a/htdocs/product/card.php b/htdocs/product/card.php index 1a9139cf9a1..0f80e171529 100644 --- a/htdocs/product/card.php +++ b/htdocs/product/card.php @@ -1039,7 +1039,7 @@ else // Nature print ''.$langs->trans("Nature").''; $statutarray=array('1' => $langs->trans("Finished"), '0' => $langs->trans("RowMaterial")); - print $form->selectarray('finished', $statutarray, GETPOST('finished','alpha'), 1); + print $form->selectarray('finished', $statutarray, GETPOST('finished', 'alpha'), 1); print ''; // Weight @@ -1424,7 +1424,7 @@ else // Nature print ''.$langs->trans("Nature").''; $statutarray=array('-1'=>' ', '1' => $langs->trans("Finished"), '0' => $langs->trans("RowMaterial")); - print $form->selectarray('finished' ,$statutarray, $object->finished); + print $form->selectarray('finished', $statutarray, $object->finished); print ''; // Weight