Hi,
Can anyone see what the problem may be with this bit of code.
I am getting this error Warning: Invalid argument supplied for foreach() in /home/dezinert/public_html/tester.php on line 53
Here is the snippet <?php
session_start();
foreach ($_SESSION['_amember_subscriptions'] as $sub); ///This is line 53
if ($sub['payment_id']){
$diff = (strtotime($s['expire_date']) - time()) / (3600*24);
if ($diff > 0){
print "Your subscription expires in $diff days";
}
}
?>
Thanks in advance