Skip to content
Snippets Groups Projects
Commit b1c94f1d authored by Andreas Gohr's avatar Andreas Gohr
Browse files

Skip only empty strings not 0 in buildAttributes

darcs-hash:20070804071749-7ad00-c7e718c2e24f4ded10b5780e2881e232fab8e48c.gz
parent fdb8d77b
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment