mirror of
https://github.com/processwire/processwire.git
synced 2025-08-10 16:54:44 +02:00
Fix issue processwire/processwire-issues#1380
This commit is contained in:
@@ -3357,7 +3357,7 @@ class ProcessTemplate extends Process implements ConfigurableModule {
|
|||||||
if($removeTag && $template->hasTag($removeTag)) {
|
if($removeTag && $template->hasTag($removeTag)) {
|
||||||
$template->removeTag($removeTag);
|
$template->removeTag($removeTag);
|
||||||
}
|
}
|
||||||
if(in_array($template->name, $tagTemplates)) {
|
if(is_array($tagTemplates) && in_array($template->name, $tagTemplates)) {
|
||||||
// template should have the given tag
|
// template should have the given tag
|
||||||
if($template->hasTag($saveTag)) continue;
|
if($template->hasTag($saveTag)) continue;
|
||||||
$template->addTag($saveTag);
|
$template->addTag($saveTag);
|
||||||
|
Reference in New Issue
Block a user