sync
authorjohn <john@roojs.com>
Thu, 11 Oct 2018 06:36:00 +0000 (14:36 +0800)
committerjohn <john@roojs.com>
Thu, 11 Oct 2018 06:36:00 +0000 (14:36 +0800)
DataObjects/Core_setting.php

index a0eae02..1a69da3 100644 (file)
@@ -89,7 +89,7 @@ class Pman_Core_DataObjects_Core_setting extends DB_DataObject
         
         $c = $this->lookup($a['module'], $a['name']);
         
-        $o = clone($c);
+        $o = empty($c) ? false : clone($c);
         
         if(empty($c)) {
             $c = DB_DataObject::factory('core_setting');