summaryrefslogtreecommitdiff
path: root/views/mods/mod_request
diff options
context:
space:
mode:
Diffstat (limited to 'views/mods/mod_request')
-rw-r--r--views/mods/mod_request/requestpage.phtml4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/mods/mod_request/requestpage.phtml b/views/mods/mod_request/requestpage.phtml
index e0ae7cb..a2a3876 100644
--- a/views/mods/mod_request/requestpage.phtml
+++ b/views/mods/mod_request/requestpage.phtml
@@ -392,7 +392,7 @@
<select name="wpsg[request][customer][land]" class="<?php echo (($this->view['pflicht']['land'] != '1')?'validate[required]':''); ?> wpsg_checkout <?php echo ((in_array("land", (array)$this->view['error']))?'wpsg_error':''); ?>" id="wpsg_land">
<option value="-1"><?php echo __('Bitte auswählen', 'wpsg'); ?></option>
<?php foreach ($this->view['countries'] as $oCountry) { ?>
- <option value="<?php echo wpsg_hspc($oCountry->id); ?>" <?php echo (($oCountry->id == $this->view['requestlist']['customer']['land'])?'selected="selected"':((!wpsg_isSizedInt($this->view['requestlist']['customer']['land']) && $this->get_option('wpsg_defaultland') == $oCountry->id)?'selected="selected"':'')); ?>><?php echo wpsg_hspc($oCountry->getName()); ?></option>
+ <option value="<?php echo wpsg_hspc($oCountry->id); ?>" <?php echo (($oCountry->id == ($this->view['requestlist']['customer']['land']??null))?'selected="selected"':((!wpsg_isSizedInt($this->view['requestlist']['customer']['land']) && $this->get_option('wpsg_defaultland') == $oCountry->id)?'selected="selected"':'')); ?>><?php echo wpsg_hspc($oCountry->getName()); ?></option>
<?php } ?>
</select>
</div>
@@ -408,7 +408,7 @@
<?php /* Automatische Einbindung der benutzerdefinierten Felder */ ?>
<?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') { ?>
<div class="wpsg_checkoutblock">
<label class="wpsg_cv wpsg_checkout" for="wpsg_cv_<?php echo $c_id; ?>">
<?php echo wpsg_hspc(__($c['name'], 'wpsg')); ?>:<?php if ($c['show'] == '0') { ?> <span class="wpsg_required">*</span><?php } ?>