Hi, sorry for my bad english.

I have 3 display blocks with pager within the same page and I have set the pager ID for this pager to 0, 1, and 2.
When only the first block has much lines to need a pager, the others throw this notices

Notice: Undefined offset: 1 in theme_pager() (line 337 of /var/www/myproject/webroot/includes/pager.inc).
Notice: Undefined offset: 1 in theme_pager_next() (line 528 of /var/www/myproject/webroot/includes/pager.inc).
Notice: Undefined offset: 1 in theme_pager_last() (line 564 of /var/www/myproject/webroot/includes/pager.inc).
Notice: Undefined offset: 1 in theme_pager() (line 359 of /var/www/myproject/webroot/includes/pager.inc).
Notice: Undefined offset: 2 in theme_pager() (line 337 of /var/www/myproject/webroot/includes/pager.inc).
Notice: Undefined offset: 2 in theme_pager_next() (line 528 of /var/www/myproject/webroot/includes/pager.inc).
Notice: Undefined offset: 2 in theme_pager_last() (line 564 of /var/www/myproject/webroot/includes/pager.inc).
Notice: Undefined offset: 2 in theme_pager() (line 359 of /var/www/myproject/webroot/includes/pager.inc).

In the next comment I would add a proposed patch.

Comments

robertom created an issue. See original summary.

robertom’s picture

Status: Active » Needs review
FileSize
669 bytes