From b1c94f1d8dde4ac744afbebf541d29c1f13e65f2 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 4 Aug 2007 09:17:49 +0200 Subject: Skip only empty strings not 0 in buildAttributes darcs-hash:20070804071749-7ad00-c7e718c2e24f4ded10b5780e2881e232fab8e48c.gz --- inc/common.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'inc/common.php') diff --git a/inc/common.php b/inc/common.php index 4311f079f..4f61db560 100644 --- a/inc/common.php +++ b/inc/common.php @@ -201,7 +201,7 @@ function buildAttributes($params,$skipempty=false){ $url = ''; foreach($params as $key => $val){ if($key{0} == '_') continue; - if(empty($val) && $skipempty) continue; + if($val === '' && $skipempty) continue; $url .= $key.'="'; $url .= htmlspecialchars ($val); -- cgit v1.2.3