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.