EDIT: This is a problem with the category_request conditional, not PHP.
I’m stumped by this error:
Parse error: syntax error, unexpected T_ENDIF in /public_html/sys/core/core.functions.php(635) : eval()'d code on line 179I think that the following code is the source of the problem:
{if not_category_request}
{exp:weblog:entries weblog="news" orderby="date" sort="desc" start_on="<?php
$d=date("D");
$h=date("H");
$todayfivepm=mktime(17, 0, 0,(int)date('m'),(int)date('d'),(int)date('Y'));
if ($d=="Thu"&&$h>=17)
echo date('Y-m-d H:i',$todayfivepm);
else
echo date('Y-m-d H:i',strtotime('last Thursday 17:00:00'));
?>
"}
{/if}I started getting this when I added the not_category_request conditional. Without the conditional, it’s fine. I just don’t see anything wrong, so I need an extra set of eyes. See anything?