@@ -344,6 +344,9 @@ class Commande extends \yii\db\ActiveRecord | |||
{ | |||
return Html::encode($this->user->prenom.' '.$this->user->nom) ; | |||
} | |||
elseif(strlen($this->username)) { | |||
return Html::encode($this->username) ; | |||
} | |||
else { | |||
return 'Client introuvable' ; | |||
} |