From 7a55cea94b01dc2553bd4ffc9b7c48f6a1db7584 Mon Sep 17 00:00:00 2001 From: Universal Omega <54654040+Universal-Omega@users.noreply.github.com> Date: Fri, 15 Apr 2022 14:08:27 -0600 Subject: [PATCH] add additional isset check for mTemplatePath (#167) --- includes/LST.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/LST.php b/includes/LST.php index 7a1405a7..075e3a20 100644 --- a/includes/LST.php +++ b/includes/LST.php @@ -54,6 +54,10 @@ public static function open( $parser, $part1 ) { return false; } else { + if ( !isset( $parser->mTemplatePath ) ) { + $parser->mTemplatePath = []; + } + $parser->mTemplatePath[$part1] = 1; return true;