08-25-2017, 04:19 PM
The stdClass error often occurs when you try to use a class property that doesn't exist. Change your code to the following and see if you still get errors:
Code:
<?php if (isset($user->data()->id) && checkMenu(2, $user->data()->id)) { ?> <! - <a href="#"> Link </a> -> <?php } ?>