E_NOTICE: Undefined variable: CURRENT_USER

2 posts by 2 authors in: Forums > CMS Builder
Last Post: March 4, 2016   (RSS)

By Damon - March 4, 2016

Hi,

How about changing everywhere you have this code:

<?php if ($CURRENT_USER): ?>

to this code to suppress the error that occurs when there isn't a value for this variable:

<?php if (@$CURRENT_USER): ?>

Cheers,
Damon Edis - interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/