Permalink
Browse files

Merged r24763 from trunk; resolves ZF-12186

  • Loading branch information...
1 parent 43e8329 commit a61ff5222d7e3d57f5823e678417f47a07515548 adamlundrigan committed May 6, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Text/MultiByte.php
View
@@ -107,7 +107,7 @@ public static function strPad($input, $padLength, $padString = ' ', $padType = S
$lengthOfPadding = $padLength - iconv_strlen($input, $charset);
$padStringLength = iconv_strlen($padString, $charset);
- if ($padStringLength === 0 || $lengthOfPadding === 0) {
+ if ($padStringLength === 0 || $lengthOfPadding <= 0) {
$return = $input;
} else {
$repeatCount = floor($lengthOfPadding / $padStringLength);

0 comments on commit a61ff52

Please sign in to comment.