diff --git a/module/common/model.php b/module/common/model.php index 0d6ffa1dc4..f61b39e111 100644 --- a/module/common/model.php +++ b/module/common/model.php @@ -1595,7 +1595,11 @@ class commonModel extends model public function checkEntry() { /* if the API is new version, goto checkNewEntry. */ - if($this->app->version) return $this->checkNewEntry(); + if($this->app->version) + { + if(!$this->checkNewEntry()) $this->response('INVALID_TOKEN'); + return true; + } /* Old version. */ if(!isset($_GET[$this->config->moduleVar]) or !isset($_GET[$this->config->methodVar])) $this->response('EMPTY_ENTRY');