|
@@ -247,12 +247,16 @@ class CategoryLogic extends BaseLogic |
|
@@ -247,12 +247,16 @@ class CategoryLogic extends BaseLogic |
|
247
|
*/
|
247
|
*/
|
|
248
|
public function getLastCategory($category){
|
248
|
public function getLastCategory($category){
|
|
249
|
$str = '';
|
249
|
$str = '';
|
|
250
|
- if(isset($category) && !empty($category)){
|
|
|
|
251
|
- foreach ($category as $v){
|
|
|
|
252
|
- $str .= $v.',';
|
250
|
+ if(is_array($category) && $category){
|
|
|
|
251
|
+ $str = ','.implode(',',$category).',';
|
|
253
|
}
|
252
|
}
|
|
254
|
- }
|
|
|
|
255
|
- return !empty(trim($str,',')) ? ','.$str.',' : '';
|
253
|
+ return $str;
|
|
|
|
254
|
+// if(isset($category) && !empty($category)){
|
|
|
|
255
|
+// foreach ($category as $v){
|
|
|
|
256
|
+// $str .= $v.',';
|
|
|
|
257
|
+// }
|
|
|
|
258
|
+// }
|
|
|
|
259
|
+// return !empty(trim($str,',')) ? ','.$str.',' : '';
|
|
256
|
}
|
260
|
}
|
|
257
|
|
261
|
|
|
258
|
/**
|
262
|
/**
|