diff options
| author | Roger Rehnelt <noreply@maennchen1.de> | 2026-09-27 16:58:49 +0200 |
|---|---|---|
| committer | Roger Rehnelt <noreply@maennchen1.de> | 2026-09-27 16:58:49 +0200 |
| commit | d26f8df33ce26c6863f97b655b90ea2b78608241 (patch) | |
| tree | 30d1f33037e32ca66385ec21df36168b7b26813f | |
| parent | 9d1cc94d9c9b0e566f65f7c59621ce241c383280 (diff) | |
Anfrage: PHP-Warnungen beim Absenden
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| -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">
|
