Index: trunk/extensions/WikiCategoryTagCloud/WikiCategoryTagCloud.php |
— | — | @@ -53,7 +53,8 @@ |
54 | 54 | $titles[0] = explode( "\n", wfMsg( 'tagcloudpages' ) ); |
55 | 55 | |
56 | 56 | for ( $i = 0; $i < count( $titles ); $i++ ) { |
57 | | - Title::newFromText( $titles[$i] )->invalidateCache(); |
| 57 | + $t = Title::newFromText( $titles[$i] ); |
| 58 | + if( $t ) $t->invalidateCache(); |
58 | 59 | } |
59 | 60 | return true; |
60 | 61 | } |