Explorar o código

Merge pull request #9163 from frederic34/nolink

fix no link in order list
Juanjo Menent %!s(int64=6) %!d(string=hai) anos
pai
achega
03963dfe8a
Modificáronse 1 ficheiros con 3 adicións e 3 borrados
  1. 3 3
      htdocs/commande/class/commande.class.php

+ 3 - 3
htdocs/commande/class/commande.class.php

@@ -3424,7 +3424,7 @@ class Commande extends CommonOrder
 
         if (!$user->rights->commande->lire)
             $option = 'nolink';
-        
+
         if ($option !== 'nolink')
         {
             // Add param to save lastsearch_values or not
@@ -3468,11 +3468,11 @@ class Commande extends CommonOrder
         $linkstart.=$linkclose.'>';
         $linkend='</a>';
 
-        if ($option == 'nolink') {
+        if ($option === 'nolink') {
             $linkstart = '';
             $linkend = '';
         }
-        
+
         $result .= $linkstart;
         if ($withpicto) $result.=img_object(($notooltip?'':$label), $this->picto, ($notooltip?(($withpicto != 2) ? 'class="paddingright"' : ''):'class="'.(($withpicto != 2) ? 'paddingright ' : '').'classfortooltip"'), 0, 0, $notooltip?0:1);
         if ($withpicto != 2) $result.= $this->ref;