Page MenuHomePhabricator
Authored By
TheVoidwalker
Jul 26 2021, 7:08 PM
Size
945 B
Referenced Files
None
Subscribers
None

T287347.patch

From 19b7ffd46f2d6ce8514882515b7e99f9809e8768 Mon Sep 17 00:00:00 2001
From: The-Voidwalker <voidwalker.wikipedia@gmail.com>
Date: Mon, 26 Jul 2021 15:02:19 -0400
Subject: [PATCH] Fix use of egLoopsCountLimit
egLoopsCounterLimit does not exist and was a likely typo.
Additionally, cast the variable to int, as null is not greater than -1
Bug: T287347
---
ExtLoops.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ExtLoops.php b/ExtLoops.php
index 1c641b3..f9a35dd 100644
--- a/ExtLoops.php
+++ b/ExtLoops.php
@@ -324,8 +324,8 @@ class ExtLoops {
* @return bool
*/
public static function maxLoopsPerformed( Parser $parser ) {
- global $egLoopsCounterLimit;
- return $egLoopsCounterLimit > -1 && $parser->mExtLoopsCounter >= $egLoopsCounterLimit;
+ global $egLoopsCountLimit;
+ return (int)$egLoopsCountLimit > -1 && $parser->mExtLoopsCounter >= (int)$egLoopsCountLimit;
}
/**
--
2.32.0.windows.2

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
9136091
Default Alt Text
T287347.patch (945 B)

Event Timeline