mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-12 17:49:28 +00:00
remove testdata in getFunction
This commit is contained in:
@@ -54,11 +54,6 @@ class Messages extends FHCAPI_Controller
|
||||
|
||||
$data = $this->getDataOrTerminateWithError($result);
|
||||
|
||||
//return null if count == 0
|
||||
if($data['count'] == 0){
|
||||
$this->terminateWithSuccess([]);
|
||||
}
|
||||
|
||||
$this->addMeta('count', $data['count']);
|
||||
|
||||
$this->terminateWithSuccess($data['data']);
|
||||
|
||||
Reference in New Issue
Block a user