Skip to content

Commit

Permalink
Use strlen in case of zeros.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanve committed Apr 13, 2013
1 parent fd0a06f commit 701e3af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions phat.php
Expand Up @@ -4,7 +4,7 @@
* @link phat.airve.com
* @author Ryan Van Etten
* @package airve/phat
* @version 2.4.1
* @version 2.4.2
* @license MIT
*/

Expand Down Expand Up @@ -265,7 +265,7 @@ public static function attrs($name, $value = '') {
if ( ! \is_scalar($name)) {
$value = array();
foreach ($name as $k => $v)
($pair = self::attrs($k, $v)) and $value[] = $pair;
\strlen($pair = self::attrs($k, $v)) and $value[] = $pair;
return \implode(' ', $value);
}

Expand Down

0 comments on commit 701e3af

Please sign in to comment.