Change if(user == NULL) to if($user === null). The error came from missing $ on user variable
solved Use of undefined constant user – assumed ‘user using php7.2
Change if(user == NULL) to if($user === null). The error came from missing $ on user variable
solved Use of undefined constant user – assumed ‘user using php7.2