DataObjects/Core_template.php
authorAlan <alan@roojs.com>
Fri, 24 Feb 2023 06:26:41 +0000 (14:26 +0800)
committerAlan <alan@roojs.com>
Fri, 24 Feb 2023 06:26:41 +0000 (14:26 +0800)
DataObjects/Core_template.php

index f77fccf..568b633 100644 (file)
@@ -471,7 +471,10 @@ class Pman_Core_DataObjects_Core_template  extends DB_DataObject
             
             throw new Exception("oops");
         }
-        return;
+        if (empty($outd) && empty($outs)) {
+            return;
+        }
+        
         $words[] =  str_replace('\\'. $ct, $ct, trim($tok[1] , $ct));
         $words = array_unique($words);