Skip to content
Snippets Groups Projects
Commit d15f9977 authored by Demian Katz's avatar Demian Katz
Browse files

Avoid notice.

parent ce1e9975
Branches
Tags
No related merge requests found
...@@ -607,8 +607,10 @@ class Voyager extends AbstractBase ...@@ -607,8 +607,10 @@ class Voyager extends AbstractBase
public function getStatuses($idList) public function getStatuses($idList)
{ {
$status = []; $status = [];
foreach ($idList as $id) { if (is_array($idList)) {
$status[] = $this->getStatus($id); foreach ($idList as $id) {
$status[] = $this->getStatus($id);
}
} }
return $status; return $status;
} }
......
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