mirror of
https://github.com/e107inc/e107.git
synced 2025-08-09 08:06:38 +02:00
Code cleanup and optimization
This commit is contained in:
@@ -128,9 +128,9 @@ class plugin_featurebox_category extends e_model
|
||||
{
|
||||
if($force || null === $this->_loaded_data)
|
||||
{
|
||||
if(e107::getDb()->db_Select('featurebox_category', '*', 'fb_category_class IN ('.USERCLASS_LIST.') AND fb_category_template=\''.e107::getParser()->toDB($template).'\''))
|
||||
if(e107::getDb()->select('featurebox_category', '*', 'fb_category_class IN ('.USERCLASS_LIST.') AND fb_category_template=\''.e107::getParser()->toDB($template).'\''))
|
||||
{
|
||||
$this->setData(e107::getDb()->db_Fetch());
|
||||
$this->setData(e107::getDb()->fetch());
|
||||
$this->_loaded_data = true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user