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 +}