Skip to content
Browse files

Merge pull request #3 from grisoni77/master

pagination warning
  • Loading branch information...
2 parents 8c80bfa + 3005936 commit 309bb633d0abe23a16da1402c1efcaac967b044b @ivanramosnet committed Mar 22, 2013
Showing with 5 additions and 13 deletions.
  1. +5 −13 html/pagination.php
View
18 html/pagination.php
@@ -78,19 +78,11 @@ function pagination_list_footer($list)
function pagination_list_render($list)
{
- // Reverse output rendering for right-to-left display.
- if (!$list['start']['active']) {
- $class_start = 'class="disabled"';
- }
- if (!$list['previous']['active']) {
- $class_previous = 'class="disabled"';
- }
- if (!$list['next']['active']) {
- $class_next = 'class="disabled"';
- }
- if (!$list['end']['active']) {
- $class_end = 'class="disabled"';
- }
+ // Reverse output rendering for right-to-left display.
+ $class_start = !$list['start']['active'] ? 'class="disabled"' : '';
+ $class_previous = !$list['previous']['active'] ? 'class="disabled"' : '';
+ $class_next = !$list['next']['active'] ? 'class="disabled"' : '';
+ $class_end = !$list['end']['active'] ? 'class="disabled"' : '';
$html = '<ul>';
$html .= '<li '.$class_start.'>' . $list['start']['data'] . '</li>';

0 comments on commit 309bb63

Please sign in to comment.
Something went wrong with that request. Please try again.