Umherirrender has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/110582

Change subject: mb_substr() expects parameter 2 to be long, string given
......................................................................

mb_substr() expects parameter 2 to be long, string given

Adding missing intval as suggested in bug 51834

Bug: 51834
Change-Id: I0bc8d612dc52d32e2cd616325e800b95c4efa23f
---
M ParserFunctions_body.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/ParserFunctions 
refs/changes/82/110582/1

diff --git a/ParserFunctions_body.php b/ParserFunctions_body.php
index 3567cc5..e4ede06 100644
--- a/ParserFunctions_body.php
+++ b/ParserFunctions_body.php
@@ -669,7 +669,7 @@
                }
 
                if ( intval( $inLength ) == 0 ) {
-                       $result = mb_substr( $inStr, $inStart );
+                       $result = mb_substr( $inStr, intval( $inStart ) );
                } else {
                        $result = mb_substr( $inStr, intval( $inStart ), 
intval( $inLength ) );
                }

-- 
To view, visit https://gerrit.wikimedia.org/r/110582
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I0bc8d612dc52d32e2cd616325e800b95c4efa23f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/ParserFunctions
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <umherirrender_de...@web.de>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to