From: Rob Church Date: Tue, 29 Aug 2006 03:24:33 +0000 (+0000) Subject: (bug 7158) Regression in padding function behaviour, blah blah, I hate users, blah... X-Git-Tag: 1.31.0-rc.0~55888 X-Git-Url: http://git.cyclocoop.org/data/Luca_Pacioli_%28Gemaelde%29.jpeg?a=commitdiff_plain;h=67bca856560e12f408b5e03ffbdda752b6b8f24b;p=lhc%2Fweb%2Fwiklou.git (bug 7158) Regression in padding function behaviour, blah blah, I hate users, blah blah --- diff --git a/includes/CoreParserFunctions.php b/includes/CoreParserFunctions.php index 26e1e5669d..dacb1b5f47 100644 --- a/includes/CoreParserFunctions.php +++ b/includes/CoreParserFunctions.php @@ -152,7 +152,7 @@ class CoreParserFunctions { $char = substr( $char, 0, 1 ); return ( $string && (int)$length > 0 && strlen( trim( (string)$char ) ) > 0 ) ? str_pad( $string, $length, (string)$char, $direction ) - : ''; + : $string; } function padleft( $parser, $string = '', $length = 0, $char = 0 ) {