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