Index: trunk/extensions/EditOwn/EditOwn.php |
— | — | @@ -38,6 +38,9 @@ |
39 | 39 | { |
40 | 40 | static $cache = array(); |
41 | 41 | global $wgEditOwnExcludedNamespaces; |
| 42 | + if(!is_array($wgEditOwnExcludedNamespaces)) |
| 43 | + // Prevent PHP from whining |
| 44 | + $wgEditOwnExcludedNamespaces = array(); |
42 | 45 | |
43 | 46 | if($action != 'edit' || $user->isAllowed('editall') || in_array($title->getNamespace(), $wgEditOwnExcludedNamespaces)) |
44 | 47 | { |