diff --git a/htdocs/core/lib/functions.lib.php b/htdocs/core/lib/functions.lib.php
index 4bbd030b1eb..7341bc0c2cb 100644
--- a/htdocs/core/lib/functions.lib.php
+++ b/htdocs/core/lib/functions.lib.php
@@ -1330,10 +1330,10 @@ function dol_banner_tab($object, $paramid, $morehtml = '', $shownav = 1, $fieldi
$nophoto='';
$morehtmlleft.='
';
}
- //elseif ($conf->browser->layout != 'phone') { // Show no photo link
+ else { // Show no photo link
$nophoto='/public/theme/common/nophoto.png';
$morehtmlleft.='';
- //}
+ }
}
}
elseif ($object->element == 'ticket')
@@ -1349,10 +1349,10 @@ function dol_banner_tab($object, $paramid, $morehtml = '', $shownav = 1, $fieldi
$nophoto='';
$morehtmlleft.='';
}
- //elseif ($conf->browser->layout != 'phone') { // Show no photo link
- $nophoto='/public/theme/common/nophoto.png';
- $morehtmlleft.='';
- //}
+ else { // Show no photo link
+ $nophoto='/public/theme/common/nophoto.png';
+ $morehtmlleft.='';
+ }
}
}
else
@@ -5260,7 +5260,7 @@ function get_exdir($num, $level, $alpha, $withoutslash, $object, $modulepart)
// Here, object->id, object->ref and modulepart are required.
//var_dump($modulepart);
if (in_array($modulepart, array('thirdparty','contact','member','propal','proposal','commande','order','facture','invoice',
- 'supplier_order','supplier_proposal','shipment','contract','expensereport')))
+ 'supplier_order','supplier_proposal','shipment','contract','expensereport','ficheinter')))
{
$path=($object->ref?$object->ref:$object->id);
}