From 364f41231aa53532ef92d0f87dafc2a3af9666f5 Mon Sep 17 00:00:00 2001 From: Jimako Date: Wed, 17 Feb 2021 20:23:18 +0100 Subject: [PATCH] #4393 Available chapter id on chapter page --- e107_plugins/page/e_shortcode.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/e107_plugins/page/e_shortcode.php b/e107_plugins/page/e_shortcode.php index 40bd398e6..2316dc0f4 100644 --- a/e107_plugins/page/e_shortcode.php +++ b/e107_plugins/page/e_shortcode.php @@ -24,7 +24,7 @@ class page_shortcodes extends e_shortcode if(($action == 'listPages' || $action == 'listChapters') && vartrue($this->request['id'])) { - $this->var = e107::getDb()->retrieve('page_chapters','chapter_name, chapter_meta_description, chapter_sef','chapter_id = '.intval($this->request['id']).' LIMIT 1'); + $this->var = e107::getDb()->retrieve('page_chapters','chapter_id, chapter_name, chapter_meta_description, chapter_sef','chapter_id = '.intval($this->request['id']).' LIMIT 1'); } if($action == 'showPage' && vartrue($this->request['id'])) // get chapter and description from current.