fix cache return
authorAlan <alan@roojs.com>
Tue, 27 Sep 2022 03:41:42 +0000 (11:41 +0800)
committerAlan <alan@roojs.com>
Tue, 27 Sep 2022 03:41:42 +0000 (11:41 +0800)
DataObjects/Core_enum.php

index 29ef576..7a9c12b 100644 (file)
@@ -257,7 +257,7 @@ class Pman_Core_DataObjects_Core_enum extends DB_DataObject
         static $cache = array();
         $ckey = json_encode(array($etype, $name));
         if (isset($cache[$ckey])) {
-            return $cache[$ckey]->id;
+            return $cache[$ckey];
         }
         
         // check