From ed4c7893e900726383b877030f444e46ab71cbdd Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Wed, 17 Dec 2014 14:34:55 +1100 Subject: [PATCH] Fix a exception being thrown from Diviner Summary: If no Diviner groups are defined that this line currently throws a fatal exception... make this a little more safe. Test Plan: Applied to our install, no more exceptions. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: Korvin, epriestley Differential Revision: https://secure.phabricator.com/D10999 --- src/applications/diviner/storage/DivinerLiveBook.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/applications/diviner/storage/DivinerLiveBook.php b/src/applications/diviner/storage/DivinerLiveBook.php index 829f043b2a..310f3fc9ea 100644 --- a/src/applications/diviner/storage/DivinerLiveBook.php +++ b/src/applications/diviner/storage/DivinerLiveBook.php @@ -57,7 +57,7 @@ final class DivinerLiveBook extends DivinerDAO } public function getGroupName($group) { - $groups = $this->getConfig('groups'); + $groups = $this->getConfig('groups', array()); $spec = idx($groups, $group, array()); return idx($spec, 'name', $group); }