Skip to content

Commit

Permalink
fix ditto error on 61 str. in ditto.class.inc.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmi3yy committed Sep 4, 2017
1 parent ca59f57 commit b0d0b17
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions assets/snippets/ditto/classes/ditto.class.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@ function addField($name,$location,$type=false) {
$type = 'tv';
$name = substr($name, 2);
}
if ($location == '*') {
if(!in_array($name,$this->fields['backend'][$type])) $this->fields['backend'][$type][] = $name;
if(!in_array($name,$this->fields['display'][$type])) $this->fields['display'][$type][] = $name;
} elseif(!in_array($name,$this->fields[$location][$type])) {
$this->fields[$location][$type][] = $name;
}
if ($location == "*") {
$this->fields["backend"][$type][] = $name;
$this->fields["display"][$type][] = $name;
} else {
$this->fields[$location][$type][] = $name;
}
}

// ---------------------------------------------------
Expand Down

0 comments on commit b0d0b17

Please sign in to comment.