Merge branch '589-fix-issue-in-rider-inventory-in-rider-optimization' into 'master-fix'
Fix rider optimization issue when jo count for hub is 0 #589 See merge request jankstudio/resq!705
This commit is contained in:
commit
0eb8850b1f
1 changed files with 6 additions and 0 deletions
|
|
@ -466,6 +466,12 @@ class AnalyticsController extends Controller
|
||||||
$ids[] = $jo['id'];
|
$ids[] = $jo['id'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// no jos, so no battery
|
||||||
|
if (count($ids) <= 0)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
// ideally we encode the ids, but right now we're assuming they'll be int
|
// ideally we encode the ids, but right now we're assuming they'll be int
|
||||||
$in_text = implode(',', $ids);
|
$in_text = implode(',', $ids);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue