fixed several bugs (this is still a mess)
[lhc/web/wiklou.git] / includes / WikiPage.php
index e5462b5..d6b20e5 100644 (file)
@@ -431,6 +431,8 @@ class WikiPage extends Page {
 
     protected function getRawData() {
         $content = $this->getContent( Revision::RAW );
+        if ( !$content ) return null;
+
         return $content->getRawData();
     }