diff --git a/lib/util.php b/lib/util.php index 36baab8aa8..d86cc5e4c0 100644 --- a/lib/util.php +++ b/lib/util.php @@ -775,9 +775,9 @@ function common_fancy_url($action, $args=NULL) { case 'imsettings': return common_path('settings/im'); case 'peoplesearch': - return common_path('search/people' . ($args) ? ('?' . http_build_query($args)) : ''); + return common_path('search/people' . (($args) ? ('?' . http_build_query($args)) : '')); case 'noticesearch': - return common_path('search/notice' . ($args) ? ('?' . http_build_query($args)) : ''); + return common_path('search/notice' . (($args) ? ('?' . http_build_query($args)) : '')); default: return common_simple_url($action, $args); }