Fix : Empty organizations in abstractPosition

parent 15af0892
......@@ -74,7 +74,7 @@ abstract class abstractPosition
$organizations[] = $organization;
}
if (!$setToken && !$currentOrg) {
if (!$setToken && !$currentOrg && $organizations) {
\laabs::setToken("ORGANIZATION", $organizations[0], 86400);
}
return $positions;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment