From 6190f479a5d958a6ab9af8ae5814076e561a73f4 Mon Sep 17 00:00:00 2001 From: "deb.monish" Date: Tue, 3 May 2016 14:45:52 +0530 Subject: [PATCH] CRM-18476: Invalid argument supplied for foreach() in CRM_Extension_Browser->_discoverRemote() --- CRM/Extension/Browser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Extension/Browser.php b/CRM/Extension/Browser.php index 3a58366433b3..d779309daf70 100644 --- a/CRM/Extension/Browser.php +++ b/CRM/Extension/Browser.php @@ -197,7 +197,7 @@ private function _discoverRemote() { } $this->_remotesDiscovered = array(); - foreach ($remotes as $id => $xml) { + foreach ((array) $remotes as $id => $xml) { $ext = CRM_Extension_Info::loadFromString($xml); $this->_remotesDiscovered[] = $ext; }