dev/core#1371 Fix e-notice caused by trying to pass in known info to the extension...
authorSeamus Lee <seamuslee001@gmail.com>
Thu, 7 Nov 2019 20:20:21 +0000 (07:20 +1100)
committerSeamus Lee <seamuslee001@gmail.com>
Thu, 7 Nov 2019 20:20:21 +0000 (07:20 +1100)
api/v3/Extension.php

index a26cf0e8784b76bd661d50209891a04b0f72475d..42d15a093a6db6b58d5de8f692960bca8c312b1c 100644 (file)
@@ -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']);
   }