Project

General

Profile

Actions

Anomalie #860

closed

Prevent PHP7.2 warning : "Warning: count(): Parameter must be an array or an object that implements Countable"

Added by Simon over 6 years ago. Updated over 6 years ago.

Status:
Fermé
Priority:
Normal
Assignee:
Category:
general
Target version:
Start date:
08/23/2018
Due date:
% Done:

100%

Estimated time:
2.00 h
Resolution:

Description

Warning: count(): Parameter must be an array or an object that implements Countable

For exemple calling : admin/index.php?rub=project&todo=mod&id=57

Warning: count(): Parameter must be an array or an object that implements Countable in /home/simon/www/linea21_v2.2/project/display.php on line 646

Warning: count(): Parameter must be an array or an object that implements Countable in /home/simon/www/linea21_v2.2/project/display.php on line 646

Warning: count(): Parameter must be an array or an object that implements Countable in /home/simon/www/linea21_v2.2/project/display.php on line 676
Actions #1

Updated by Simon over 6 years ago

Add or replace test by

is_array($data)
Actions #2

Updated by Simon over 6 years ago

  • Status changed from Nouveau to Fermé
  • % Done changed from 0 to 100

Applied in changeset linea21|r3428.

Actions

Also available in: Atom PDF