From 32c20a74535f0bbcbcc5161c5f3a1b8000cc8a90 Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 4 Jun 2019 13:06:34 -0700 Subject: [PATCH] Issue #2146 - Featurebox frontend fix. --- e107_handlers/admin_ui.php | 2 +- e107_plugins/featurebox/includes/tree.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/e107_handlers/admin_ui.php b/e107_handlers/admin_ui.php index f36363ac2..62aa277a9 100755 --- a/e107_handlers/admin_ui.php +++ b/e107_handlers/admin_ui.php @@ -5468,7 +5468,7 @@ class e_admin_ui extends e_admin_controller_ui if(empty($string)) { - return null; + return null; } return $selected. " LIKE '%".e107::getParser()->toDB($string)."%' "; // array($selected, $this->getQuery('searchquery')); diff --git a/e107_plugins/featurebox/includes/tree.php b/e107_plugins/featurebox/includes/tree.php index a4930149a..22aa3c3ed 100644 --- a/e107_plugins/featurebox/includes/tree.php +++ b/e107_plugins/featurebox/includes/tree.php @@ -45,7 +45,7 @@ class plugin_featurebox_tree extends e_tree_model $qry = 'SELECT SQL_CALC_FOUND_ROWS * FROM #featurebox WHERE fb_category='.intval($category_id).' AND fb_class IN('.USERCLASS_LIST.')'.$where.$order.$limit; $this->setParam('db_query', $qry); - parent::load($force); + parent::loadBatch($force); return $this; }