Need Help....Trying To Get Property Of Non - Object Error

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ethelena9x
Forum Newbie
Posts: 1
Joined: Sat Apr 07, 2018 10:39 pm

Need Help....Trying To Get Property Of Non - Object Error

Post by ethelena9x »

Hi,

I am trying to call getIsAdmin function from another class but getting "Error 500-Trying to get property of non-object"...I am new to PHP so not aware
how to resolve..

I tried to check var_dump also, it's showing "boolean false"

Really looking forward for the help...
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Need Help....Trying To Get Property Of Non - Object Erro

Post by Celauran »

var_dump gave you your answer; you don't have an object, you have false. In order for anyone to help you, we'd need to see the code in question.
Post Reply