PM-000 "Small fix to: Undefined variable: $_SESSION" SOLVED
- Small fix to: Undefined variable: $_SESSION
This commit is contained in:
@@ -59,11 +59,15 @@ class license_application extends padl
|
|||||||
* */
|
* */
|
||||||
public function license_application($license_path = 'license.dat', $use_mcrypt = true, $use_time = true, $use_server = true, $allow_local = false, $challenge = false)
|
public function license_application($license_path = 'license.dat', $use_mcrypt = true, $use_time = true, $use_server = true, $allow_local = false, $challenge = false)
|
||||||
{
|
{
|
||||||
# check to see if the class has been secured
|
//Check to see if the class has been secured
|
||||||
unset($_SESSION['__sw__']);
|
if (isset($_SESSION)) {
|
||||||
|
unset($_SESSION["__sw__"]);
|
||||||
|
|
||||||
if ($challenge) {
|
if ($challenge) {
|
||||||
$_SESSION['__sw__'] = true;
|
$_SESSION["__sw__"] = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
$this->_check_secure();
|
$this->_check_secure();
|
||||||
$this->_LICENSE_PATH = $license_path;
|
$this->_LICENSE_PATH = $license_path;
|
||||||
$this->init($use_mcrypt, $use_time, $use_server, $allow_local);
|
$this->init($use_mcrypt, $use_time, $use_server, $allow_local);
|
||||||
|
|||||||
Reference in New Issue
Block a user