@@ 1745-1749 (lines=5) @@ | ||
1742 | $counter = 1; |
|
1743 | $error = false; |
|
1744 | while ($row = Database::fetch_array($result, 'ASSOC')) { |
|
1745 | if ($counter == 1 && $row['type'] == 'pagebreak') { |
|
1746 | ||
1747 | Display::display_error_message(get_lang('PagebreakNotFirst'), false); |
|
1748 | $error = true; |
|
1749 | } |
|
1750 | if ($counter == $total && $row['type'] == 'pagebreak') { |
|
1751 | Display::display_error_message(get_lang('PagebreakNotLast'), false); |
|
1752 | $error = true; |
|
@@ 1750-1753 (lines=4) @@ | ||
1747 | Display::display_error_message(get_lang('PagebreakNotFirst'), false); |
|
1748 | $error = true; |
|
1749 | } |
|
1750 | if ($counter == $total && $row['type'] == 'pagebreak') { |
|
1751 | Display::display_error_message(get_lang('PagebreakNotLast'), false); |
|
1752 | $error = true; |
|
1753 | } |
|
1754 | $counter++; |
|
1755 | } |
|
1756 |