From bac23a272b76e950ce8c3b0684d342785082577b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB?= Date: Thu, 1 Mar 2018 10:41:36 +0300 Subject: [PATCH] Update Templates.php --- assets/modules/letters/classes/Templates.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/modules/letters/classes/Templates.php b/assets/modules/letters/classes/Templates.php index 28dcd8a..837df64 100644 --- a/assets/modules/letters/classes/Templates.php +++ b/assets/modules/letters/classes/Templates.php @@ -56,7 +56,7 @@ public function InsOrUpdTemplate($data,$id){ } $keys = implode(',',array_keys($res)); $values = implode(',',array_values($res)); - $duplicate = ''; + $duplicate = array(); foreach ($res as $key => $value){ if (!intval($value)){ $duplicate[] = $key."=".$value; @@ -80,4 +80,4 @@ public function InsOrUpdTemplate($data,$id){ } } -} \ No newline at end of file +}