From 5a8803fdad969af07ca434e6ee51d7cb21f89965 Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Mon, 12 Jun 2023 09:25:27 +0800 Subject: [PATCH] * Modify 0000 to notZeroDate. --- module/screen/model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();