UpdateBjsTemplates.php
authorleon <leon@roojs.com>
Thu, 3 Aug 2023 03:38:52 +0000 (11:38 +0800)
committerleon <leon@roojs.com>
Thu, 3 Aug 2023 03:38:52 +0000 (11:38 +0800)
UpdateBjsTemplates.php

index 182a8fe..a223198 100644 (file)
@@ -318,6 +318,10 @@ class Pman_Cms_UpdateBjsTemplates extends Pman_Admin_UpdateBjsTemplates
             }
             
             foreach($ff->Pman_Cms['DataObjects_Cms_templatestr']['tables'] as $table=>$cols){
+                $tableName = $table;
+                if(strpos($table, ',') !== false) {
+                    $ar = explode(',' $table);
+                }
                 $t = DB_DataObject::factory($table);
                 foreach($t->fetchAll() as $d) {
                     $cts->onTableChange($this, $d, 'update');