If this is your first visit, check our documentation. To post, register or login.
Forums / Code Matters / Bug Reports / [Done 1.3.6] Init_Special_Funcs.php Auto-Expire Bug

[Done 1.3.6] Init_Special_Funcs.php Auto-Expire Bug

Locked

Started by wmmkiv on 29 Aug 2006, 8:08 PM · Views: 1,988

Results 1 to 1 of 1
This thread is locked. New replies are disabled.
29 Aug 2006, 8:08 PM
#1
wmmkiv avatar

wmmkiv

New Zenner

Join Date:
Aug 2006
Posts:
1
Plugin Contributions:
0

Post #1 by wmmkiv

I apologize if this is a repost.

My version of zencart is zen-cart-v1.3.0.2-full-fileset.

My question is in regards to the Auto-Activate/Auto-Expire functionality which is actioned upon each new session. The file init_special_funcs.php under /includes/init_includes/ contains the following line:

if (isset($_SESSION['updateExpirations']) && $_SESSION['updateExpirations'] === true) {

The problem is that the only time the $_SESSION['updateExpirations'] variable is set is inside this clause, thus the code will never execute and the Auto-Expire/Auto-Activate functions will never run. Is this by design or a bug?

I changed it to the following:

if (!isset($_SESSION['updateExpirations']) || $_SESSION['updateExpirations'] != true) {

Thanks,

WMMKIV