Db: listExternal should not fail with no data

refs #11448
This commit is contained in:
Thomas Gelf 2016-03-25 14:09:31 +01:00
parent 3fd9a4c0de
commit d2eed4fff3
1 changed files with 3 additions and 0 deletions

View File

@ -735,6 +735,9 @@ class Db extends DbConnection
)->order('o.object_name');
$res = $this->db()->fetchCol($select);
if (empty($res)) {
return array();
}
return array_combine($res, $res);
}