projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20db7e5
)
dev/core#1371 Fix e-notice caused by trying to pass in known info to the extension...
author
Seamus Lee
<seamuslee001@gmail.com>
Thu, 7 Nov 2019 20:20:21 +0000
(07:20 +1100)
committer
Seamus Lee
<seamuslee001@gmail.com>
Thu, 7 Nov 2019 20:20:21 +0000
(07:20 +1100)
api/v3/Extension.php
patch
|
blob
|
blame
|
history
diff --git
a/api/v3/Extension.php
b/api/v3/Extension.php
index a26cf0e8784b76bd661d50209891a04b0f72475d..42d15a093a6db6b58d5de8f692960bca8c312b1c 100644
(file)
--- 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']);
}