summaryrefslogtreecommitdiff
path: root/core/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'core/controllers')
-rw-r--r--core/controllers/rest.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/controllers/rest.php b/core/controllers/rest.php
index f0fb5e5c..c7429f5d 100644
--- a/core/controllers/rest.php
+++ b/core/controllers/rest.php
@@ -84,7 +84,7 @@ abstract class REST_Controller extends Controller {
// @todo this needs security checks
$id = $function;
$resource = ORM::factory($this->resource_type, $id);
- if (!$resource->loaded && !$request_method == "post") {
+ if (!$resource->loaded && $request_method != "post") {
return Kohana::show_404();
}