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