I have the following code in a comment entries tag
{if logged_in_member_id == author_id}
<span class="reply"><a href="http://{path=Bands/Delete_Comment/{segment_3}/{comment_id}}">Delete</a></span>
{if:elseif logged_in_member_id != author_id}
<span class="reply">a href="#">Reply</a></span>
{/if}If I then modify the condition to the following I get a PHP error
{if logged_in_member_id == author_id && logged_in}A PHP Error was encountered
Severity: Notice
Message: Use of undefined constant TRUEFALSE - assumed ‘TRUEFALSE’
Filename: libraries/Functions.php(680) : eval()‘d code
Line Number: 193
A PHP Error was encountered
Severity: Notice
Message: Use of undefined constant TRUEFALSE - assumed ‘TRUEFALSE’
Filename: libraries/Functions.php(680) : eval()‘d code
Line Number: 195
Any ideas? Is Functions.php(680) the line number of the function? It refers to the following if it is…
function evaluate($str)
{
return eval('?'.'>'.$str.'<?php ');
}