@@ 1784-1788 (lines=5) @@ | ||
1781 | $counter = 1; |
|
1782 | $error = false; |
|
1783 | while ($row = Database::fetch_array($result, 'ASSOC')) { |
|
1784 | if ($counter == 1 && $row['type'] == 'pagebreak') { |
|
1785 | ||
1786 | Display::display_error_message(get_lang('PagebreakNotFirst'), false); |
|
1787 | $error = true; |
|
1788 | } |
|
1789 | if ($counter == $total && $row['type'] == 'pagebreak') { |
|
1790 | Display::display_error_message(get_lang('PagebreakNotLast'), false); |
|
1791 | $error = true; |
|
@@ 1789-1792 (lines=4) @@ | ||
1786 | Display::display_error_message(get_lang('PagebreakNotFirst'), false); |
|
1787 | $error = true; |
|
1788 | } |
|
1789 | if ($counter == $total && $row['type'] == 'pagebreak') { |
|
1790 | Display::display_error_message(get_lang('PagebreakNotLast'), false); |
|
1791 | $error = true; |
|
1792 | } |
|
1793 | $counter++; |
|
1794 | } |
|
1795 |