diff --git a/lib/zin/wg/featurebar/v1.php b/lib/zin/wg/featurebar/v1.php index 559c6915c6..dd166705d5 100644 --- a/lib/zin/wg/featurebar/v1.php +++ b/lib/zin/wg/featurebar/v1.php @@ -59,8 +59,9 @@ class featureBar extends wg data('activeFeature', $current); - if(empty($commonLink)) $commonLink = createLink($app->rawModule, $app->rawMethod, $this->prop('linkParams')); - if(empty($searchModule)) $searchModule = data("config.{$currentModule}.search.module") ? data("config.{$currentModule}.search.module") : $currentModule; + if(empty($commonLink)) $commonLink = createLink($app->rawModule, $app->rawMethod, $this->prop('linkParams')); + if(empty($searchModule)) $searchModule = data("config.{$currentModule}.search.module"); + if(empty($searchModule)) $searchModule = $currentModule; foreach($rawItems as $rawItem) {