summaryrefslogtreecommitdiff
path: root/views/mods/mod_statistics
diff options
context:
space:
mode:
Diffstat (limited to 'views/mods/mod_statistics')
-rw-r--r--views/mods/mod_statistics/simplefilter.phtml6
1 files changed, 3 insertions, 3 deletions
diff --git a/views/mods/mod_statistics/simplefilter.phtml b/views/mods/mod_statistics/simplefilter.phtml
index 328bf34..9623431 100644
--- a/views/mods/mod_statistics/simplefilter.phtml
+++ b/views/mods/mod_statistics/simplefilter.phtml
@@ -22,7 +22,7 @@
}
<?php
- if ($this->view['filter']['related'] > 0)
+ if (($this->view['filter']['related'] ?? 0) > 0)
{
?>
jQuery("#filter-related").val("<?php echo $this->view['filter']['related']; ?>");
@@ -65,8 +65,8 @@
<div class="customfilter" style="display:none; width:100%;">
- <?php echo wpsg_drawForm_Date('filter[day][0]', __('von', 'wpsg'), $this->view['filter']['day'][0]['d'].'.'.$this->view['filter']['day'][0]['m'].'.'.$this->view['filter']['day'][0]['Y'], array('time' => false)); ?>
- <?php echo wpsg_drawForm_Date('filter[day][1]', __('bis', 'wpsg'), $this->view['filter']['day'][1]['d'].'.'.$this->view['filter']['day'][1]['m'].'.'.$this->view['filter']['day'][1]['Y'], array('time' => false)); ?>
+ <?php echo wpsg_drawForm_Date('filter[day][0]', __('von', 'wpsg'), (isset($this->view['filter']['day'][0]) ? $this->view['filter']['day'][0]['d'].'.'.$this->view['filter']['day'][0]['m'].'.'.$this->view['filter']['day'][0]['Y'] : ''), array('time' => false)); ?>
+ <?php echo wpsg_drawForm_Date('filter[day][1]', __('bis', 'wpsg'), (isset($this->view['filter']['day'][1]) ? $this->view['filter']['day'][1]['d'].'.'.$this->view['filter']['day'][1]['m'].'.'.$this->view['filter']['day'][1]['Y'] : ''), array('time' => false)); ?>
<?php /* if (isset($this->view['filter']['day'][0])) { ?>