Skip to content

Commit b0d0b17

Browse files
committed
fix ditto error on 61 str. in ditto.class.inc.php
1 parent ca59f57 commit b0d0b17

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

assets/snippets/ditto/classes/ditto.class.inc.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,12 @@ function addField($name,$location,$type=false) {
5555
$type = 'tv';
5656
$name = substr($name, 2);
5757
}
58-
if ($location == '*') {
59-
if(!in_array($name,$this->fields['backend'][$type])) $this->fields['backend'][$type][] = $name;
60-
if(!in_array($name,$this->fields['display'][$type])) $this->fields['display'][$type][] = $name;
61-
} elseif(!in_array($name,$this->fields[$location][$type])) {
62-
$this->fields[$location][$type][] = $name;
63-
}
58+
if ($location == "*") {
59+
$this->fields["backend"][$type][] = $name;
60+
$this->fields["display"][$type][] = $name;
61+
} else {
62+
$this->fields[$location][$type][] = $name;
63+
}
6464
}
6565

6666
// ---------------------------------------------------

0 commit comments

Comments
 (0)