mirror of
https://github.com/smarty-php/smarty.git
synced 2025-08-04 10:24:26 +02:00
fixed 2 notices in smarty_function_mailto()
This commit is contained in:
@@ -48,6 +48,7 @@
|
||||
*/
|
||||
function smarty_function_mailto($params, &$smarty)
|
||||
{
|
||||
$extra = '';
|
||||
extract($params);
|
||||
|
||||
if (empty($address)) {
|
||||
@@ -83,6 +84,7 @@ function smarty_function_mailto($params, &$smarty)
|
||||
$mail_parms[] = 'followupto='.str_replace('%40','@',rawurlencode($followupto));
|
||||
}
|
||||
|
||||
$mail_parm_vals = '';
|
||||
for ($i=0; $i<count($mail_parms); $i++) {
|
||||
$mail_parm_vals .= (0==$i) ? '?' : '&';
|
||||
$mail_parm_vals .= $mail_parms[$i];
|
||||
|
Reference in New Issue
Block a user