# geschrieben wurde.\r
#\r
# Autor: Patrick Canterino <patrick@patshaping.de>\r
-# Letzte Aenderung: 17.12.2011\r
+# Letzte Aenderung: 03.03.2012\r
#\r
# Copyright (C) 2002-2012 Patrick Canterino\r
#\r
$tpl->set_var('SUBJECT',htmlspecialchars($subject));\r
$tpl->set_var('TEXT', htmlspecialchars($text));\r
\r
- reset($user_fields);\r
+ if(isset($user_fields)) {\r
+ reset($user_fields);\r
\r
- while(list($user_field,$user_field_data) = each($user_fields)) {\r
- if(isset($user_field_data['tpl_var']) && $user_field_data['tpl_var'] != '') {\r
- $tpl_var = $user_field_data['tpl_var'];\r
- }\r
- else {\r
- $tpl_var = 'USER_'.$user_field;\r
- }\r
+ while(list($user_field,$user_field_data) = each($user_fields)) {\r
+ if(isset($user_field_data['tpl_var']) && $user_field_data['tpl_var'] != '') {\r
+ $tpl_var = $user_field_data['tpl_var'];\r
+ }\r
+ else {\r
+ $tpl_var = 'USER_'.$user_field;\r
+ }\r
\r
- $tpl->set_var($tpl_var,htmlspecialchars(formdata($user_field)));\r
+ $tpl->set_var($tpl_var,htmlspecialchars(formdata($user_field)));\r
+ }\r
}\r
\r
$tpl->parse();\r