Skip to content

Fix data type check

Michael Gruschwitz requested to merge grusch-it/TreeAndMenu:master into master

Inproper data type check could lead to preg_match() expects parameter 2 to be string, array given warnings in TreeAndMenu_body.php on Line 72.

Thats the case if using the extensions=["persist"] parameter to persist tree state as documented at https://www.mediawiki.org/wiki/Extension:TreeAndMenu

Edited by Michael Gruschwitz

Merge request reports