Jump to content

OOP if or statement


Nodral

Recommended Posts

Hi Guys

 

I've absolutely no knowledge of OOP and I've inherited a huge site built with OOP.  I can convert some of it, to variables I understand and can use, and have a vague understanding of the predefined functions.  However I an struggling to put a simple if/or statement together.

 

if(user_has_role_assignment($USER->id,1)){

 

works fine, but when I try to do it as an if / or it fails.

 

if(user_has_role_assignment($USER->id,1)) || ($USER->id,36))  {

 

Any ideas?

 

Sorry, I don't have any errors as another part of the site turns off the error reporting and I can't for the life of me turn it back on with error_reporting(E_ALL) in the page;

Link to comment
https://forums.phpfreaks.com/topic/237429-oop-if-or-statement/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.