| @@ 1630-1638 (lines=9) @@ | ||
| 1627 | ); |
|
| 1628 | if ($smcFunc['db_num_rows']($request) == 0) |
|
| 1629 | { |
|
| 1630 | if ($fix_errors && in_array('files_without_attachment', $to_fix)) |
|
| 1631 | { |
|
| 1632 | @unlink($attach_dir . '/' . $file); |
|
| 1633 | } |
|
| 1634 | else |
|
| 1635 | { |
|
| 1636 | $context['repair_errors']['files_without_attachment']++; |
|
| 1637 | $to_fix[] = 'files_without_attachment'; |
|
| 1638 | } |
|
| 1639 | } |
|
| 1640 | $smcFunc['db_free_result']($request); |
|
| 1641 | } |
|
| @@ 1643-1654 (lines=12) @@ | ||
| 1640 | $smcFunc['db_free_result']($request); |
|
| 1641 | } |
|
| 1642 | } |
|
| 1643 | else |
|
| 1644 | { |
|
| 1645 | if ($fix_errors && in_array('files_without_attachment', $to_fix)) |
|
| 1646 | { |
|
| 1647 | @unlink($attach_dir . '/' . $file); |
|
| 1648 | } |
|
| 1649 | else |
|
| 1650 | { |
|
| 1651 | $context['repair_errors']['files_without_attachment']++; |
|
| 1652 | $to_fix[] = 'files_without_attachment'; |
|
| 1653 | } |
|
| 1654 | } |
|
| 1655 | } |
|
| 1656 | $current_check++; |
|
| 1657 | $_GET['substep'] = $current_check; |
|