diff --git a/htdocs/lib/functions.lib.php b/htdocs/lib/functions.lib.php
index a96853818ea..bf202832e96 100644
--- a/htdocs/lib/functions.lib.php
+++ b/htdocs/lib/functions.lib.php
@@ -1044,11 +1044,18 @@ function dol_trunc($string,$size=40,$trunc='right',$stringencoding='')
* \brief Show a picto according to module/object (generic function)
* \param alt Text of alt on image
* \param object Objet pour lequel il faut afficher le logo (example: user, group, action, bill, contract, propal, product, ...)
+ * Pour les modules externe utiliser nomimage@mymodule pour rechercher dans le repertoire "img" du module
* \return string Retourne tag img
*/
function img_object($alt, $object)
{
global $conf,$langs;
+
+ if (preg_match('/^([^@]+)@([^@]+)$/i',$object,$regs))
+ {
+ return '
';
+ }
+
return '
';
}