I have Joomla 6.1 with template Pitech - 1.0.2. I am continually getting the following in my error_log
PHP Warning: Undefined variable $currentDate in /home/ottawaoc/test2.ottawaoc.ca/templates/pitech/html/com_content/article/default.php on line 52
It is just a warning but it doesn't make any sense and I would like to get rid of it or at least get it explained.
The code surrounding it is:
$isExpired = JVERSION < 4
? (strtotime($this->item->publish_down) < strtotime(Factory::getDate())) && $this->item->publish_down != Factory::getDbo()->getNullDate()
: !is_null($this->item->publish_down) && $this->item->publish_down < date("Y/m/d");
?>
There is no $currentDate anywhere in the file - so I can only guess
a) it is testing true and thinks I have version < 4 and
b) the getDate is triggering the error message and quoteing $currentDate as a fixed string not a variable anywhere.
Can I safely edit this code out entirely and hope this will be corrected in the next release of the template?
Thank you