Skip to content
Snippets Groups Projects
Commit eff8f516 authored by Laurent Destailleur's avatar Laurent Destailleur
Browse files

Fix: No http if url is empty

parent 584d23bf
No related branches found
No related tags found
No related merge requests found
...@@ -792,6 +792,8 @@ function dol_print_size($size) ...@@ -792,6 +792,8 @@ function dol_print_size($size)
*/ */
function dol_print_url($url,$target='_blank',$max=32) function dol_print_url($url,$target='_blank',$max=32)
{ {
if (empty($url)) return '';
$link='<a href="'; $link='<a href="';
if (! eregi('^http',$url)) $link.='http://'; if (! eregi('^http',$url)) $link.='http://';
$link.=$url; $link.=$url;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment