Index: trunk/phase3/includes/ResourceLoaderModule.php |
— | — | @@ -839,8 +839,7 @@ |
840 | 840 | if ( isset( $this->modifiedTime[$hash] ) ) { |
841 | 841 | return $this->modifiedTime[$hash]; |
842 | 842 | } |
843 | | - if ( $context->getUser() ) { |
844 | | - $user = User::newFromName( $context->getUser() ); |
| 843 | + if ( $context->getUser() && $user = User::newFromName( $context->getUser() ) ) { |
845 | 844 | return $this->modifiedTime[$hash] = $user->getTouched(); |
846 | 845 | } else { |
847 | 846 | return 0; |