From d2eed4fff3c971e447a35d386f6527c4fae6f087 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Fri, 25 Mar 2016 14:09:31 +0100 Subject: [PATCH] Db: listExternal should not fail with no data refs #11448 --- library/Director/Db.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/library/Director/Db.php b/library/Director/Db.php index 0048a3e3..4672ac00 100644 --- a/library/Director/Db.php +++ b/library/Director/Db.php @@ -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); }