From: Evan Prodromou Date: Wed, 9 Jul 2008 22:34:09 +0000 (-0400) Subject: fix syntax errors in URL builder X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f20eca5187a0b31f2bbc6b797ae77e3723c2b1b6;p=quix0rs-gnu-social.git fix syntax errors in URL builder darcs-hash:20080709223409-84dde-809bfe5eb294f24cb3a99faf6436e57ff054cd16.gz --- diff --git a/lib/util.php b/lib/util.php index c6b456a035..91b9381ef8 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) ? '?' . implode('&', $args)) : ''); + return common_path('search/people' . ($args) ? ('?' . implode('&', $args)) : ''); case 'noticesearch': - return common_path('search/notice' . (($args) ? '?' . implode('&', $args)) : ''); + return common_path('search/notice' . ($args) ? ('?' . implode('&', $args)) : ''); default: return common_simple_url($action, $args); }