mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-19 05:12:41 +01:00
Missing optional Conduit arguments do not throw errors anymore.
Summary: ConduitAPIRequest::getValue call for optional arguments which are not given added a line to the error log file. Test Plan: Tested that Conduit API calls were working from Conduit console. Reviewed By: epriestley Reviewers: jungejason, epriestley Commenters: jungejason CC: epriestley, aran, jungejason Differential Revision: 236
This commit is contained in:
parent
80eb0f0eb1
commit
ebbd57771f
2 changed files with 3 additions and 1 deletions
|
@ -26,7 +26,7 @@ class ConduitAPIRequest {
|
|||
}
|
||||
|
||||
public function getValue($key) {
|
||||
return $this->params[$key];
|
||||
return idx($this->params, $key);
|
||||
}
|
||||
|
||||
public function getAllParameters() {
|
||||
|
|
|
@ -6,5 +6,7 @@
|
|||
|
||||
|
||||
|
||||
phutil_require_module('phutil', 'utils');
|
||||
|
||||
|
||||
phutil_require_source('ConduitAPIRequest.php');
|
||||
|
|
Loading…
Reference in a new issue