1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-18 21:02: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:
tuomaspelkonen 2011-05-05 17:23:20 -07:00
parent 80eb0f0eb1
commit ebbd57771f
2 changed files with 3 additions and 1 deletions

View file

@ -26,7 +26,7 @@ class ConduitAPIRequest {
}
public function getValue($key) {
return $this->params[$key];
return idx($this->params, $key);
}
public function getAllParameters() {

View file

@ -6,5 +6,7 @@
phutil_require_module('phutil', 'utils');
phutil_require_source('ConduitAPIRequest.php');