Call to a member function on a non-object

I made a change to come code and can’t for the life of me fix it, I keep getting the same error message

Notice: Undefined index: ISC_CLASS_BRANDS in /virtual/ozhairandbeauty.com/public_html/includes/display/BrandProductListing.php on line 14

Fatal error: Call to a member function ShowingAllBrands() on a non-object in /virtual/ozhairandbeauty.com/public_html/includes/display/BrandProductListing.php on line 14

This is part of the code

[php]

  1. <?php
  2.  CLASS ISC_BRANDPRODUCTLISTING_PANEL extends PANEL
    
  3.  {
    
  4.  	public function SetPanelSettings()
    
  5.  	{
    
  6.  		$count = 0;
    
  7.  		$output = "";
    
  8.  		$products = array();
    
  9. 		$GLOBALS['BrandsMessage'] = '';
    
  10. 	        // If we're showing the "All brands" page then we to display a list of all the brands
    
  11. 		if($GLOBALS['ISC_CLASS_BRANDS']->ShowingAllBrands()) {
    
  12. 			// Output sub-categories
    
  13. 			$GLOBALS['SNIPPETS']['SubBrands'] = "";
    
  14. 			$result = $GLOBALS['ISC_CLASS_DB']->Query("SELECT * FROM [|PREFIX|]brands ORDER BY brandname ASC");
    

[/php]

Thanks for any help you can give

Sponsor our Newsletter | Privacy Policy | Terms of Service