From c0986a556df8afb446a9445c3a036e3d17a547e9 Mon Sep 17 00:00:00 2001 From: Krivchikov Dmitry Date: Sun, 16 Nov 2014 10:40:19 +0300 Subject: [PATCH] FIX --- ground/controllers/PageController.php | 2 +- public/.htaccess | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/ground/controllers/PageController.php b/ground/controllers/PageController.php index 5b7fc64..89c7d40 100644 --- a/ground/controllers/PageController.php +++ b/ground/controllers/PageController.php @@ -61,7 +61,7 @@ class PageController extends Controller $point = Point::model()->getByPK($pointId); - if (!isset($point->id)) + if ($point->id == NULL) { App::error404(); } diff --git a/public/.htaccess b/public/.htaccess index f0de519..354ec3a 100644 --- a/public/.htaccess +++ b/public/.htaccess @@ -1,8 +1,6 @@ AddDefaultCharset utf-8 RewriteEngine On -ErrorDocument 404 /page/404/ - RewriteBase / RewriteCond %{REQUEST_FILENAME} !-l RewriteCond %{REQUEST_FILENAME} !-f