Skip to content
This repository has been archived by the owner on Apr 30, 2021. It is now read-only.

Commit

Permalink
ACHECKER-5
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorAlagwu committed Jun 29, 2018
1 parent d026e98 commit c02ed22
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/classes/BasicChecks.class.php
Expand Up @@ -161,7 +161,8 @@ public static function getNumOfTagRecursiveInChildren($e, $tag)
public static function hasDuplicateAttribute($e, $attr, $id_array)
{
global $has_duplicate_attribute, $id_array;
is_array($id_array) ? $id_array= array() : $id_array = array();

is_array($id_array) ? $id_array : $id_array = array();

foreach($e->children() as $child)
{
Expand Down Expand Up @@ -513,7 +514,7 @@ public static function has_duplicate_attribute($e, $attr, $id_array)
{
global $has_duplicate_attribute, $id_array;

is_array($id_array) ? $id_array= array() : $id_array = array();
is_array($id_array) ? $id_array : $id_array = array();

if ($has_duplicate_attribute) return;

Expand Down

0 comments on commit c02ed22

Please sign in to comment.