mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 05:37:32 +02:00
Fix for PHP warning in 'search' shortcode.
This commit is contained in:
@@ -21,14 +21,21 @@ if (!isset($SEARCH_SHORTCODE))
|
|||||||
$ref['downloads'] = 3;
|
$ref['downloads'] = 3;
|
||||||
$ref['pages'] = 4;
|
$ref['pages'] = 4;
|
||||||
|
|
||||||
$search_prefs = $sysprefs -> getArray('search_prefs');
|
// $search_prefs = $sysprefs -> getArray('search_prefs');
|
||||||
|
|
||||||
|
$search_prefs = e107::getConfig('search')->getPref();
|
||||||
|
|
||||||
foreach ($search_prefs['plug_handlers'] as $plug_dir => $active) {
|
|
||||||
if (is_readable(e_PLUGIN.$plug_dir."/e_search.php")) {
|
if(is_array($search_prefs['plug_handlers']))
|
||||||
$ref[$plug_dir] = $plug_dir;
|
{
|
||||||
|
foreach ($search_prefs['plug_handlers'] as $plug_dir => $active)
|
||||||
|
{
|
||||||
|
if (is_readable(e_PLUGIN.$plug_dir."/e_search.php"))
|
||||||
|
{
|
||||||
|
$ref[$plug_dir] = $plug_dir;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if($ref[$parm]!= ''){
|
if($ref[$parm]!= ''){
|
||||||
$page = $ref[$parm];
|
$page = $ref[$parm];
|
||||||
}elseif($parm='all' && $ref[e_PAGE] != ''){
|
}elseif($parm='all' && $ref[e_PAGE] != ''){
|
||||||
|
Reference in New Issue
Block a user