Fixed warning messages when parsing @notscript files

This commit is contained in:
PEMapModder 2016-03-28 02:27:03 +08:00
parent e51c6b4b42
commit 8441169365

View File

@ -96,7 +96,7 @@ class ScriptPluginLoader implements PluginLoader{
if(preg_match("/^[ \t]+\\*[ \t]+@([a-zA-Z]+)([ \t]+(.*))?$/", $line, $matches) > 0){
$key = $matches[1];
$content = trim($matches[3]);
$content = trim($matches[3] ?? "");
if($key === "notscript"){
return null;