Index: trunk/extensions/GroupPermissionsManager/plugins/ExtendedPermissions.php |
— | — | @@ -196,7 +196,7 @@ |
197 | 197 | global $wgRequest; |
198 | 198 | if($wgRequest->getVal('action') == 'edit' || $wgRequest->getVal('action') == 'sumbit') { |
199 | 199 | global $wgTitle; |
200 | | - if(!$wgTitle->userCan('edit')) return true; |
| 200 | + if(!$wgTitle instanceOf Title || !$wgTitle->userCan('edit')) return true; |
201 | 201 | } |
202 | 202 | loadGPMessages(); |
203 | 203 | if($key == 'right-edit') { |