11-10-2017, 11:03 AM
What error is it giving you? One thing I can see is that you have your else within your checkmenu, so there is no "else".
You should have:
if (checkMenu(4,$user->data()->id)){
Redirect::to($us_url_root.’users/account2.php’);
} else {
Redirect::to($us_url_root.’users/account.php’);
}
You should have:
if (checkMenu(4,$user->data()->id)){
Redirect::to($us_url_root.’users/account2.php’);
} else {
Redirect::to($us_url_root.’users/account.php’);
}