Skip to content

Commit

Permalink
avoid warning if not an array
Browse files Browse the repository at this point in the history
Conflicts:
	htdocs/projet/element.php
  • Loading branch information
frederic34 authored and eldy committed Feb 21, 2020
1 parent f6eba36 commit 327b827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/projet/element.php
Expand Up @@ -606,7 +606,7 @@

$elementarray = $object->get_element_list($key, $tablename, $datefieldname, $dates, $datee, !empty($project_field)?$project_field:'fk_projet');

if (count($elementarray)>0 && is_array($elementarray))
if (is_array($elementarray) && count($elementarray) > 0)
{
$total_ht = 0;
$total_ttc = 0;
Expand Down

0 comments on commit 327b827

Please sign in to comment.