diff --git a/htdocs/commande/list.php b/htdocs/commande/list.php
index 6af44d4a7d6..db11df409f6 100644
--- a/htdocs/commande/list.php
+++ b/htdocs/commande/list.php
@@ -338,7 +338,7 @@ if ($resql)
print '';
print '
';
$liststatus=array('0'=>$langs->trans("StatusOrderDraftShort"), '1'=>$langs->trans("StatusOrderValidated"), '2'=>$langs->trans("StatusOrderSentShort"), '3'=>$langs->trans("StatusOrderToBill"), '4'=>$langs->trans("StatusOrderProcessed"), '-1'=>$langs->trans("StatusOrderCanceledShort"));
- print $form->selectarray('viewstatut', $liststatus, $viewstatut, 1);
+ print $form->selectarray('viewstatut', $liststatus, $viewstatut, -4);
print ' | ';
print '';
print '';
diff --git a/htdocs/product/class/productcustomerprice.class.php b/htdocs/product/class/productcustomerprice.class.php
index dd072e19a2f..86228db70c5 100644
--- a/htdocs/product/class/productcustomerprice.class.php
+++ b/htdocs/product/class/productcustomerprice.class.php
@@ -307,8 +307,8 @@ class Productcustomerprice extends CommonObject
{
global $langs;
- if (! empty($sortfield)) $sortfield = "t.rowid";
- if (! empty($sortorder)) $sortorder = "DESC";
+ if ( empty($sortfield)) $sortfield = "t.rowid";
+ if ( empty($sortorder)) $sortorder = "DESC";
$sql = "SELECT";
$sql .= " t.rowid,";
|