From 85b9c197ca517396bfe670033caa1a9fc33a29ad Mon Sep 17 00:00:00 2001 From: Seamus Lee Date: Fri, 8 Nov 2019 06:25:55 +1100 Subject: [PATCH] dev/core#1371 Fix e-notice caused by trying to pass in known to the extension downloader when checking requirements --- api/v3/Extension.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/v3/Extension.php b/api/v3/Extension.php index a26cf0e878..42d15a093a 100644 --- a/api/v3/Extension.php +++ b/api/v3/Extension.php @@ -245,6 +245,9 @@ function civicrm_api3_extension_download($params) { throw new API_Exception('Cannot resolve download url for extension. Try adding parameter "url"'); } + if (!isset($info)) { + $info = NULL; + } foreach (CRM_Extension_System::singleton()->getDownloader()->checkRequirements($info) as $requirement) { return civicrm_api3_create_error($requirement['message']); } -- 2.25.1