From 67bca856560e12f408b5e03ffbdda752b6b8f24b Mon Sep 17 00:00:00 2001 From: Rob Church Date: Tue, 29 Aug 2006 03:24:33 +0000 Subject: [PATCH] (bug 7158) Regression in padding function behaviour, blah blah, I hate users, blah blah --- includes/CoreParserFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) { -- 2.20.1