Update logs.php

Fixed archived logs overwrite bug.