Help make a proper URL if one was not stored in the db ( add http:// )

This commit is contained in:
Miles Lott 2001-03-12 02:09:57 +00:00
parent 81ad9bdf63
commit 97ed5d20ef

View File

@ -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") {