views_handler_field_counter::render() adds to $count without initializing it if $pager['use_pager] is not true.

This causes PHP to emits warnings in E_STRICT mode. $count should probably be initialized to 0 at the beginning of the function.

Comments

dawehner’s picture

Status: Active » Fixed

Thx for providing this. But this is already fixed in dev version.

    $count = is_numeric($this->options['counter_start']) ? $this->options['counter_start'] - 1 : 0;

You could have anyway a look at more optimisations #551752: Counter field optimisations.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.