Merge "More accurate function descriptions"
[lhc/web/wiklou.git] / maintenance / purgeDeletedFiles.php
index 86658c5..9f2af33 100644 (file)
@@ -96,6 +96,9 @@ class PurgeDeletedFiles extends Maintenance {
                        __METHOD__
                );
                foreach ( $res as $row ) {
+                       if ( $row->fa_archive_name === null ) {
+                               continue; // was not an old version (current version names checked already)
+                       }
                        $ofile = $repo->newFromArchiveName( $file->getTitle(), $row->fa_archive_name );
                        // If there is an orphaned storage file still there...delete it
                        if ( !$file->exists() && $repo->fileExists( $ofile->getPath() ) ) {