fml fix
This commit is contained in:
@ -95,7 +95,9 @@ class ManiaLink implements Container {
|
||||
* @return \FML\ManiaLink
|
||||
*/
|
||||
public function add(Renderable $child) {
|
||||
array_push($this->children, $child);
|
||||
if (!in_array($child, $this->children, true)) {
|
||||
array_push($this->children, $child);
|
||||
}
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user