For the maintenance/ directory files:
[lhc/web/wiklou.git] / maintenance / storage / checkStorage.php
index 579954d..3d193b4 100644 (file)
@@ -197,6 +197,7 @@ class CheckStorage
                                        array( 'old_id IN (' . implode( ',', $objectRevs ) . ')' ), $fname );
                                while ( $row = $dbr->fetchObject( $res ) ) {
                                        $oldId = $row->old_id;
+                                       $matches = array();
                                        if ( !preg_match( '/^O:(\d+):"(\w+)"/', $row->header, $matches ) ) {
                                                $this->error( 'restore text', "Error: invalid object header", $oldId );
                                                continue;