From ee4a78505d50e4340106cf2041255643f7e8a557 Mon Sep 17 00:00:00 2001 From: xushenjie Date: Sat, 6 May 2023 02:12:13 +0000 Subject: [PATCH] * Fix miswritten code of todo zen file. --- module/todo/zen.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/todo/zen.php b/module/todo/zen.php index ac88df88d9..0ca0ba7002 100755 --- a/module/todo/zen.php +++ b/module/todo/zen.php @@ -748,12 +748,12 @@ class todoZen extends todo { foreach($todos as $todo) { - $begin = (isset($times[$todo->begin]) ? $times[$todo->begin] : $todo->begin); - $end = (isset($times[$todo->end]) ? $times[$todo->end] : $todo->end); + $begin = isset($times[$todo->begin]) ? $times[$todo->begin] : $todo->begin; + $end = isset($times[$todo->end]) ? $times[$todo->end] : $todo->end; /* fill some field with useful value. */ - $todo->begin = $todo->begin == '2400' ? '' $begin; - $todo->end = $todo->end == '2400' ? '' $end; + $todo->begin = $todo->begin == '2400' ? '' : $begin; + $todo->end = $todo->end == '2400' ? '' : $end; $type = $todo->type; if(isset($assemble->users[$todo->account])) $todo->account = $assemble->users[$todo->account];