From: <var...@us...> - 2010-03-31 09:25:58
|
Revision: 7311 http://phpwiki.svn.sourceforge.net/phpwiki/?rev=7311&view=rev Author: vargenau Date: 2010-03-31 09:25:47 +0000 (Wed, 31 Mar 2010) Log Message: ----------- Fix border, hspace, vspace attributes handling Modified Paths: -------------- trunk/lib/stdlib.php Modified: trunk/lib/stdlib.php =================================================================== --- trunk/lib/stdlib.php 2010-03-31 09:00:27 UTC (rev 7310) +++ trunk/lib/stdlib.php 2010-03-31 09:25:47 UTC (rev 7311) @@ -455,8 +455,8 @@ } // These attributes take a number (pixels): border, hspace, vspace elseif ((($attr == "border") || ($attr == "hspace") || ($attr == "vspace")) - && (is_int($value))) { - $link->setAttr($attr, $value); + && (is_numeric($value))) { + $link->setAttr($attr, (int)$value); } // These attributes take a number (pixels) or a percentage: height, width elseif ((($attr == "height") || ($attr == "width")) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |