Manual:AttachLatest.php

Details
attachLatest.php file is a maint-scripts>Special:MyLanguage/Manual:Maintenance scripts|maintenance script that fixes incorrect values in the   field in the database. The program is looking for pages with column   from the table page set to 0. For these pages, it then attaches the latest revision of that page according to the revision timestamp. The script finally prints out the number of pages, which have been or would be changed.

Options/Arguments
Without any parameter, it will display what will be fixed, but not changes will be done to the database.