Update to Drupal 8.0.3. For more information, see https://www.drupal.org/drupal-8.0.3-release-notes
This commit is contained in:
parent
10f9f7fbde
commit
9db4fae9a7
202 changed files with 3806 additions and 760 deletions
|
|
@ -124,7 +124,7 @@ function views_tokens($type, $tokens, array $data, array $options, BubbleableMet
|
|||
case 'page-count':
|
||||
// If there are no items per page, set this to 1 for the division.
|
||||
$per_page = $view->getItemsPerPage() ?: 1;
|
||||
$replacements[$original] = (int) ceil(count($view->result) / $per_page);
|
||||
$replacements[$original] = max(1, (int) ceil(count($view->result) / $per_page));
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue