- Posts: 84
- Thank you received: 2
Warning: Invalid argument supplied for ...
14 years 7 months ago #38217
by sdhakad
Warning: Invalid argument supplied for ... was created by sdhakad
Please Log in or Create an account to join the conversation.
14 years 7 months ago #38218
by nicolas
Replied by nicolas on topic Re: Warning: Invalid argument supplied for ...
Please replace the code:
by:
in that file and it should remove that warning.
Code:
foreach($parents as $parent){
$categories[$data->product_id]['parents'][$parent->category_id]=$parent->category_id;
}
by:
Code:
if(!empty($parents) && is_array($parents)){
foreach($parents as $parent){
$categories[$data->product_id]['parents'][$parent->category_id]=$parent->category_id;
}
}
in that file and it should remove that warning.
The following user(s) said Thank You: sdhakad
Please Log in or Create an account to join the conversation.
14 years 7 months ago #38222
by sdhakad
Replied by sdhakad on topic Re: Warning: Invalid argument supplied for ...
Thanks Done.
Please Log in or Create an account to join the conversation.
Time to create page: 0.259 seconds