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:
Kendrick Chan 2021-06-18 13:27:43 +00:00
commit 0eb8850b1f

View file

@ -466,6 +466,12 @@ class AnalyticsController extends Controller
$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
$in_text = implode(',', $ids);