- Fixes data not being passed to API buildRequest method

This commit is contained in:
Vlad
2016-07-06 09:31:13 -04:00
parent 2db681d908
commit bd814baf28
2 changed files with 4 additions and 2 deletions

View File

@ -22,7 +22,9 @@ class API {
$this->action = isset($_GET['action']) ?
Helpers::underscoreToCamelCase($_GET['action']) :
false;
$this->data = self::decodeRequestData($_GET['data']);
$this->data = isset($_GET['data']) ?
self::decodeRequestData($_GET['data']) :
false;
}
function init() {
@ -47,7 +49,6 @@ class API {
}
static function decodeRequestData($data) {
if(!$data) return false;
$data = base64_decode($data);
return (is_serialized($data)) ?
unserialize($data) :