Check that the result of Title::makeTitleSafe() is an object before calling a method...
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Mon, 9 Apr 2012 08:30:50 +0000 (10:30 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Mon, 9 Apr 2012 08:30:50 +0000 (10:30 +0200)
commit6edec1137380075f989e4244943cb3586310bf75
treef0a0e9fa41d37a01fde596a111aca4669add1ca4
parent477d34c31b785ec84e0861467d636914eac977ae
Check that the result of Title::makeTitleSafe() is an object before calling a method on it.

Change-Id: If23fb3a5900cee6a5c4b3c24b44ce7f3da308bf3
Title::makeTitleSafe() does not always return a Title object, e.g. calling load.php?modules=user&user=| resulted in a fatal error.
includes/resourceloader/ResourceLoaderUserModule.php