DataObjects/Events.php
authorAlan Knowles <alan@roojs.com>
Mon, 6 Jul 2015 04:25:55 +0000 (12:25 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 6 Jul 2015 04:25:55 +0000 (12:25 +0800)
DataObjects/Events.php

index 820d7c0..58e5c36 100644 (file)
@@ -523,8 +523,8 @@ class Pman_Core_DataObjects_Events extends DB_DataObject
               
             if ($obj && $obj->pid() && method_exists($obj,'toEventString')) {
                 $es = $obj->toEventString();
-                var_dump($es);
-                if (strpos($this->remarks, $es) < 0) {
+                
+                if (empty($this->remarks) || strpos($this->remarks, $es) < 0) {
                     $ret['remarks'] = $es . ' ' . $this->remarks;
                 }
             }