diff --git a/module/screen/model.php b/module/screen/model.php index c04843823d..092f9014b8 100644 --- a/module/screen/model.php +++ b/module/screen/model.php @@ -863,7 +863,7 @@ class screenModel extends model case 'year': $component->option->value = $this->filter->year; - $begin = $this->dao->select('YEAR(MIN(date)) year')->from(TABLE_ACTION)->where('date')->ne('0000-00-00')->fetch('year'); + $begin = $this->dao->select('YEAR(MIN(date)) year')->from(TABLE_ACTION)->where('date')->notZeroDate()->fetch('year'); if($begin < 2009) $begin = 2009; $options = array();