R
R
Ruslan Absalyamov2018-07-10 15:37:35
PHP
Ruslan Absalyamov, 2018-07-10 15:37:35

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())

And in the USER class I declare it
abstract class CAllUser extends CDBResult
{
    const WHOLESALE = 6;//Оптовик
....

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Beloborodov, 2018-07-10
@kowap

And if so?
CUser inherits CAllUser? Apparently not.
Yuzay example above

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question