removed notice of undefined variable. (thanks shuther!)

This commit is contained in:
messju
2004-02-07 20:15:45 +00:00
parent 029e1a6c4e
commit 7e6807b7e5

View File

@@ -100,6 +100,7 @@ function smarty_function_mailto($params, &$smarty)
if ($encode == 'javascript' ) {
$string = 'document.write(\'<a href="mailto:'.$address.'" '.$extra.'>'.$text.'</a>\');';
$js_encode = '';
for ($x=0; $x < strlen($string); $x++) {
$js_encode .= '%' . bin2hex($string[$x]);
}