From 58f497e06f220823bb854277160de7caf1888375 Mon Sep 17 00:00:00 2001 From: Chris Date: Thu, 27 Feb 2014 18:43:25 +0800 Subject: [PATCH] DataObjects/Core_watch.php --- DataObjects/Core_watch.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/DataObjects/Core_watch.php b/DataObjects/Core_watch.php index 1ed55e14..edc38e4f 100644 --- a/DataObjects/Core_watch.php +++ b/DataObjects/Core_watch.php @@ -222,12 +222,8 @@ class Pman_Core_DataObjects_Core_watch extends DB_DataObject continue; } //echo "inserting notify?"; - if (empty($n->act_start)) { - $n->act_start( date("Y-m-d H:i:s") ); - } + $n->act_start( empty($n->act_start) ? date("Y-m-d H:i:s") : $n->act_start ); $n->insert(); - - } -- 2.39.2