diff options
author | Andreas Gohr <andi@splitbrain.org> | 2007-08-04 09:17:49 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2007-08-04 09:17:49 +0200 |
commit | b1c94f1d8dde4ac744afbebf541d29c1f13e65f2 (patch) | |
tree | cf1741ff6ed97276bde747df91fe8bab5dc73a4f /inc | |
parent | fdb8d77b680840866f44bc1515710db60af94fc5 (diff) | |
download | rpg-b1c94f1d8dde4ac744afbebf541d29c1f13e65f2.tar.gz rpg-b1c94f1d8dde4ac744afbebf541d29c1f13e65f2.tar.bz2 |
Skip only empty strings not 0 in buildAttributes
darcs-hash:20070804071749-7ad00-c7e718c2e24f4ded10b5780e2881e232fab8e48c.gz
Diffstat (limited to 'inc')
-rw-r--r-- | inc/common.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); |