View Single Post
  #8  
Old 06-03-2019, 11:07 AM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default Re: altered carts OnSale mod for php 7+

Using the recommended PHP Code Checker I have this issue...

session_register is depreciated

I have this code
Code:
// Page Control // x_session_register('page_control'); if (!$page_control && empty($change)){ $page_control = 'overview'; } if (!empty($change)){ $page_control = $change; }

I see that the recommended fix is
Two things that came to my mind:

Quote:
Using global variables is not good anyway, find a way to avoid them.
You can still set variables with $_SESSION['var'] = "value".
Can someone show me how to fix this one? I'm not sure how, once I see and example I should be able to fix the rest of the instances on my own (hopefully)
Thanks.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote