diff options
Diffstat (limited to 'inc/common.php')
-rw-r--r-- | inc/common.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/common.php b/inc/common.php index 3bdfc7c72..bed083392 100644 --- a/inc/common.php +++ b/inc/common.php @@ -197,10 +197,11 @@ function buildURLparams($params, $sep='&'){ * * @author Andreas Gohr */ -function buildAttributes($params){ +function buildAttributes($params,$skipempty=false){ $url = ''; foreach($params as $key => $val){ if($key{0} == '_') continue; + if(empty($val) && $skipempty) continue; $url .= $key.'="'; $url .= htmlspecialchars ($val); |