From: leon Date: Wed, 2 Aug 2023 04:50:07 +0000 (+0800) Subject: DataObjects/Core_templatestr.php X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=f6989d88390d757a93aaf1134fdc839ea9e32e45;p=Pman.Core DataObjects/Core_templatestr.php --- 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 != '' "); }