- $query = handleRequest($request, $ids);
- $success = $DB->update($query);
- if (! $success) {
- error("Message not released, contact administrator [$query]");
- exit;
+ if ($request == 'block') {
+ // call rest server
+ } else {
+ $query = handleRequest($util, $request, $ids);
+ $success = $DB->update($query);
+ if (! $success) {
+ error("Message not released, contact administrator [$query]");
+ exit;
+ }