Fix rider optimization issue when jo count for hub is 0 #589 #1516

Merged
jankstudio merged 1 commit from 589-fix-issue-in-rider-inventory-in-rider-optimization into master-fix 2021-06-18 13:27:43 +00:00

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);