From e0892916123cae8fd37f60cc212a95e092d31d0e Mon Sep 17 00:00:00 2001 From: Erik Thuning <boooink@gmail.com> Date: Tue, 11 Jun 2019 15:07:25 +0200 Subject: [PATCH] Fixed the missing tags bug for templates --- include/view.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/view.php b/include/view.php index 25171bb..7539c7e 100644 --- a/include/view.php +++ b/include/view.php @@ -1139,7 +1139,10 @@ class Ajax extends Responder { private function save_template() { $info = $_POST; $name = $info['template']; - $tags = $this->unescape_tags($info['tag']); + $tags = array(); + if(isset($info['tag'])) { + $tags = $this->unescape_tags($info['tag']); + } foreach(array('template', 'id', 'name',