Use of undefined constant current

#1
Hi,
on the last version 1.5.1
I'm with PHP 7.4.22
PHP Warning: Use of undefined constant current - assumed 'current' (this will throw an Error in a future version of PHP) in ./plugins/system/lscache/components/com_virtuemart.php on line 289 (293 with actual file)
https://github.com/litespeedtech/lscache-joomla/issues/45

Code is
PHP:
 if(($start>0) && ($pagination->pages.current==1)){
So could we use
PHP:
 if(($start>0) && ($pagination->pages.'current'==1)){
instead ?

Thanks in advance
 
Last edited:
Top