Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -143,7 +143,7 @@ |
144 | 144 | // add the title revision to the key |
145 | 145 | $t = Title::newFromText( $reqSet['title'] ); |
146 | 146 | // if there is no title (don't worry we just use the $wgStyleVersion var (which should be updated on relevant commits) |
147 | | - if( $t->exists() ){ |
| 147 | + if( $t && $t->exists() ){ |
148 | 148 | if( $t->getLatestRevID() > $this->mLatestScriptRevID ) |
149 | 149 | $this->mLatestScriptRevID = $t->getLatestRevID(); |
150 | 150 | } |