E_NOTICE: Undefined variable: CURRENT_USER

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

I just updated one of my sites to v3.02 and it started generating a pile of E_NOTICEs (25 in a row).  While I normally tend not to worry too much about E_NOTICEs, this one is a bit frustrating.

3rd Mar, 2016 - 08:35:05 PM
E_NOTICE: Undefined variable: CURRENT_USER
/home/skacl/public_html/boardOfDirectors.php (line 127)
http://sk-aircadetleague.com/boardOfDirectors.php

This is the code around line 140 (in red below):

<table width="100%">
<tr>
<th align="left">Position</th>
<th align="left">Name</th>
<?php if ($CURRENT_USER): ?>
<th align="left">Email Address</th>
<th align="left">Phone</th>
<?php endif ?>
</tr>
<?php foreach ($board_of_directorsRecords as $record): ?>
<tr>
<td>
<?php echo htmlencode($record['title']) ?>
</td>
<td>
<?php echo $record['prefix:label'] ?> <?php echo htmlencode($record['first_name']) ?> <?php echo htmlencode($record['surname']) ?>
</td>
<?php if ($CURRENT_USER): ?>
<td>

<a href="mailto:<?php echo htmlencode($record['email']) ?>"><?php echo $record['email'] ?></a>
</td>
<td>
<?php echo htmlencode($record['phone']) ?>
</td>
<?php endif ?>
</tr>
<?php endforeach ?>
</table>

Any ideas?

--
northernpenguin
Northern Penguin Technologies

"Any sufficiently advanced technology
is indistinguishable from magic."
........Arthur C. Clarke