Index: trunk/extensions/LiquidThreads/classes/Thread.php |
— | — | @@ -1562,7 +1562,7 @@ |
1563 | 1563 | public static function canUserCreateThreads( $user ) { |
1564 | 1564 | $userText = $user->getName(); |
1565 | 1565 | |
1566 | | - static $canCreateNew = null; |
| 1566 | + static $canCreateNew = array(); |
1567 | 1567 | if ( !isset( $canCreateNew[$userText] ) ) { |
1568 | 1568 | $title = Title::makeTitleSafe( NS_LQT_THREAD, 'Test title for LQT thread creation check' ); |
1569 | 1569 | $canCreateNew[$userText] = $title->userCan( 'create' ) && $title->userCan( 'edit' ); |