Skip to content

Commit

Permalink
Update Letters.php
Browse files Browse the repository at this point in the history
  • Loading branch information
sazanof authored Mar 12, 2018
1 parent 72b69a1 commit ff1225a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion assets/modules/letters/classes/Letters.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ public function InsOrUpdLetter($tbl,$data,$id){
if (intval($id)){
$data['id'] = $id;
}
$data['cat_id'] = implode(',',$data['cat_id']);
if (is_array($data['cat_id'])){
$data['cat_id'] = implode(',',$data['cat_id']);
}
if (is_array($data) && count($data) > 0){
$f_ar = explode(',',$fields);
foreach ($data as $key => $val){
Expand Down

0 comments on commit ff1225a

Please sign in to comment.