View Single Post
  #23  
Old 03-20-2016, 02:36 PM
Ittermat's Avatar
Ittermat Ittermat is offline
The awesomesauce
 
Join Date: Feb 2016
Location: in front of my laptop
Posts: 272
Gender: Female
Credits: 34,923
Ittermat is on a distinguished road
Default

When I do that I get this error..

Catchable fatal error: Argument 1 passed to Sidebar::setDivision() must be an instance of GUIComponent, null given, called in /home/atrocity/public_html/classes/class_sidebar.php on line 235 and defined in /home/atrocity/public_html/classes/class_sidebar.php on line 62

this is what my line 62-68 looks like

Code:
protected function setDivision(GUIComponent $module){
	    if(!$this->division){
		    $this->division = new Division;
		    $this->division->setClass("sidebar");
		}	
		$this->division->add($module);
    }
And this is line 235

Code:
    $this->setDivision($this->FavPetSB);
}
Reply With Quote