From f6989d88390d757a93aaf1134fdc839ea9e32e45 Mon Sep 17 00:00:00 2001 From: leon Date: Wed, 2 Aug 2023 12:50:07 +0800 Subject: [PATCH] DataObjects/Core_templatestr.php --- DataObjects/Core_templatestr.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/DataObjects/Core_templatestr.php b/DataObjects/Core_templatestr.php index 8a07fa5c..a8a2afaf 100644 --- a/DataObjects/Core_templatestr.php +++ b/DataObjects/Core_templatestr.php @@ -129,19 +129,17 @@ class Pman_Core_DataObjects_Core_templatestr extends DB_DataObject if(count($deactive)) { $t = DB_DataObject::factory($this->tableName()); - // deactive the child data + // deactivate the parent data $t->query("UPDATE core_templatestr SET active = 0 WHERE id in (" . implode(',' ,$deactive) . ") "); - // deactive the child data + // deactivate the child data $t->query("UPDATE core_templatestr SET active = 0 WHERE src_id IN (". implode(',' ,$deactive) . ") AND - template_id = {$tmpl->id} - AND lang != '' "); } -- 2.39.2