Post by Avvici » Tue Feb 03, 2015 2:01 am

Code: Select all

Warning: Invalid argument supplied for foreach() in /home/joe76/public_html/admin/controller/module/featured.php on line 124
This happens when press Save without filling anything out.

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by pm-netti » Tue Feb 03, 2015 6:44 am

Avvici -arvixe- wrote:

Code: Select all

Warning: Invalid argument supplied for foreach() in /home/joe76/public_html/admin/controller/module/featured.php on line 124
This happens when press Save without filling anything out.
This quick code :)

Code: Select all

if( !empty( $products ) ) {
		foreach ($products as $product_id) {
			$product_info = $this->model_catalog_product->getProduct($product_id);

			if ($product_info) {
				$data['products'][] = array(
					'product_id' => $product_info['product_id'],
					'name'       => $product_info['name']
				);
			}
		}
}
lines 124-133

User avatar
Active Member

Posts

Joined
Sat Apr 07, 2012 11:22 pm
Location - Kittilä, Finland

Post by Avvici » Thu Feb 05, 2015 10:38 pm

I'm not asking for help to fix this. This is a bug forum. It needs to be fixed on the base level. O0

User avatar
Expert Member

Posts

Joined
Tue Apr 05, 2011 12:09 pm
Location - Asheville, NC

Post by seun » Wed Jan 13, 2016 1:10 pm

Please how do i fix this problem

Newbie

Posts

Joined
Sat Feb 07, 2015 2:08 pm
Who is online

Users browsing this forum: No registered users and 8 guests