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