mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
Help make a proper URL if one was not stored in the db ( add http:// )
This commit is contained in:
parent
81ad9bdf63
commit
97ed5d20ef
@ -156,6 +156,7 @@
|
||||
$coldata = $entries[$i][$column[0]];
|
||||
// Some fields require special formatting.
|
||||
if ($column[0] == "url") {
|
||||
if ( !empty($coldata) && (substr($coldata,0,7) != 'http://') ) { $coldata = 'http://' . $coldata; }
|
||||
$ref='<a href="'.$coldata.'" target="_new">';
|
||||
$data=$coldata.'</a>';
|
||||
} elseif ($column[0] == "d_email") {
|
||||
|
Loading…
Reference in New Issue
Block a user