mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-16 14:32:18 +00:00
StV: Favorites use now correct API return functions
This commit is contained in:
@@ -46,9 +46,9 @@ class Favorites extends FHCAPI_Controller
|
||||
$data = $this->getDataOrTerminateWithError($result);
|
||||
|
||||
if (!$data)
|
||||
$this->outputJson(null);
|
||||
$this->terminateWithSuccess(null);
|
||||
else
|
||||
$this->outputJson($data['stv_favorites']);
|
||||
$this->terminateWithSuccess($data['stv_favorites']);
|
||||
}
|
||||
|
||||
public function set()
|
||||
@@ -66,6 +66,6 @@ class Favorites extends FHCAPI_Controller
|
||||
|
||||
$this->getDataOrTerminateWithError($result);
|
||||
|
||||
$this->outputJsonSuccess(true);
|
||||
$this->terminateWithSuccess(true);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user