diff options
Diffstat (limited to 'views')
| -rw-r--r-- | views/mods/mod_request/requestmail.phtml | 2 | ||||
| -rw-r--r-- | views/mods/mod_request/requestmail_html.phtml | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/views/mods/mod_request/requestmail.phtml b/views/mods/mod_request/requestmail.phtml index 2d619ca..bbf6532 100644 --- a/views/mods/mod_request/requestmail.phtml +++ b/views/mods/mod_request/requestmail.phtml @@ -105,7 +105,7 @@ <?php echo wpsg_pad_right(__('UStIdNr.', 'wpsg').': ', 30); ?><?php echo wpsg_pad_left(wpsg_getStr($this->view['requestlist']['customer']['ustidnr']), 46); ?>
<?php /* Automatische Einbindung der benutzerdefinierten Felder BEGIN */ ?>
<?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_request_customerdata'))) { ?>
-<?php foreach ((array)$this->view['pflicht']['custom'] as $c_id => $c) { if ($c['show'] != '2') { ?>
+<?php foreach ((array)($this->view['pflicht']['custom']??[]) as $c_id => $c) { if ($c['show'] != '2') { ?>
<?php echo wpsg_pad_right(__($c['name'], 'wpsg').': ', 30); ?><?php if ($c['typ'] == '2') { ?>
<?php if (wpsg_isSizedInt($this->view['requestlist']['customer']['custom'][$c_id])) { ?><?php echo wpsg_pad_left(__('Ja', 'wpsg'), 46); ?><?php } else { ?><?php echo wpsg_pad_left(__('Nein', 'wpsg'), 46); ?><?php } ?>
<?php } else { ?>
diff --git a/views/mods/mod_request/requestmail_html.phtml b/views/mods/mod_request/requestmail_html.phtml index 3bd016e..5cdd0b7 100644 --- a/views/mods/mod_request/requestmail_html.phtml +++ b/views/mods/mod_request/requestmail_html.phtml @@ -185,7 +185,7 @@ <?php /* Automatische Einbindung der benutzerdefinierten Felder BEGIN */ ?>
<?php if (wpsg_isSizedInt($this->get_option('wpsg_mod_request_customerdata'))) { ?>
- <?php foreach ((array)$this->view['pflicht']['custom'] as $c_id => $c) { if ($c['show'] != '2') { ?>
+ <?php foreach ((array)($this->view['pflicht']['custom']??[]) as $c_id => $c) { if ($c['show'] != '2') { ?>
<tr>
<td style="padding:2px; line-height:100%; vertical-align:middle;" class="col0"><?php echo __($c['name'], 'wpsg'); ?></td>
<td style="padding:2px; line-height:100%; vertical-align:middle;" class="col1">
|
