DataObjects/Core_watch.php
authorChris <chris@roojs.com>
Thu, 27 Feb 2014 10:43:25 +0000 (18:43 +0800)
committerChris <chris@roojs.com>
Thu, 27 Feb 2014 10:43:25 +0000 (18:43 +0800)
DataObjects/Core_watch.php

index 1ed55e1..edc38e4 100644 (file)
@@ -222,12 +222,8 @@ class Pman_Core_DataObjects_Core_watch extends DB_DataObject
                 continue;
             }
             //echo "inserting notify?";
                 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();
             $n->insert();
-            
-            
         }
         
         
         }