From ebcfd400de8f684161ef764c40e500fdc6a6ad82 Mon Sep 17 00:00:00 2001 From: Awilum Date: Tue, 10 Dec 2019 18:13:54 +0300 Subject: [PATCH] feat(core): set routable true on entries creation #320 --- flextype/core/Entries.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flextype/core/Entries.php b/flextype/core/Entries.php index a4ff30c5..2a5334ad 100755 --- a/flextype/core/Entries.php +++ b/flextype/core/Entries.php @@ -480,7 +480,7 @@ class Entries $data['published_by'] = (Session::exists('uuid') ? Session::get('uuid') : ''); $data['created_by'] = (Session::exists('uuid') ? Session::get('uuid') : ''); - if (isset($data['routable']) && is_array($data['routable'])) { + if (isset($data['routable']) && is_bool($data['routable'])) { $data['routable'] = $data['routable']; } else { $data['routable'] = true;