Answer the question
In order to leave comments, you need to log in
Why did constants stop working for me?
I have such a problem, everything worked fine before, but now an error occurs Undefined class constant 'WHOLESALE' (0)
. This goes out to the virtual machine, but everything works fine on the server. I don’t even understand what could be the matter and why it suddenly stopped working.
My code
Here I am declaring and the error refers to it
in_array($USER::WHOLESALE, $USER->GetUserGroupArray())
abstract class CAllUser extends CDBResult
{
const WHOLESALE = 6;//Оптовик
....
Answer the question
In order to leave comments, you need to log in
And if so?
CUser inherits CAllUser? Apparently not.
Yuzay example above
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question