From e8b7b40535238ddfcb82107452a46c8a876d168a Mon Sep 17 00:00:00 2001 From: Andy Miller Date: Sun, 4 Jan 2015 14:25:39 -0700 Subject: [PATCH] Fix for recalcitrant CodeKit --- system/src/Grav/Common/Page/Page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/src/Grav/Common/Page/Page.php b/system/src/Grav/Common/Page/Page.php index 798034aa2..2f8ddb911 100644 --- a/system/src/Grav/Common/Page/Page.php +++ b/system/src/Grav/Common/Page/Page.php @@ -1264,7 +1264,7 @@ class Page if ($this->home()) { $paths = $uri->paths(); $home = ltrim($config->get('system.home.alias'), '/'); - if ($paths[0] == $home) { + if (isset($paths[0]) && $paths[0] == $home) { return true; } } else {