Fix data type check
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