forked from mirrors/easyappointments
The processors should not work if the response is empty.
This commit is contained in:
parent
97e1b670ed
commit
6f25d3af17
4 changed files with 4 additions and 4 deletions
|
@ -34,7 +34,7 @@ class Minimize implements ProcessorsInterface {
|
|||
* @param array &$response The response array to be processed.
|
||||
*/
|
||||
public static function process(array &$response) {
|
||||
if (!isset($_GET['fields'])) {
|
||||
if (!isset($_GET['fields']) || empty($response)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ class Paginate implements ProcessorsInterface {
|
|||
* @param array &$response The response array to be processed.
|
||||
*/
|
||||
public static function process(array &$response) {
|
||||
if (!isset($_GET['page'])) {
|
||||
if (!isset($_GET['page']) || empty($response)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ class Search implements ProcessorsInterface {
|
|||
* @param array &$response The response array to be processed.
|
||||
*/
|
||||
public static function process(array &$response) {
|
||||
if (!isset($_GET['q'])) {
|
||||
if (!isset($_GET['q']) || empty($response)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ class Sort implements ProcessorsInterface {
|
|||
* @param array &$response The response array to be processed.
|
||||
*/
|
||||
public static function process(array &$response) {
|
||||
if (!isset($_GET['sort'])) {
|
||||
if (!isset($_GET['sort']) || empty($response)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue