mirror of
https://github.com/ACSPRI/queXS
synced 2024-04-02 12:12:16 +00:00
Fixes: incompatibility with PHP 7.2
This commit is contained in:
@@ -39,11 +39,9 @@ include_once(dirname(__FILE__) . "/../config.inc.php");
|
|||||||
*/
|
*/
|
||||||
include_once(dirname(__FILE__) . "/../db.inc.php");
|
include_once(dirname(__FILE__) . "/../db.inc.php");
|
||||||
|
|
||||||
session_name(LS_SESSION_NAME);
|
|
||||||
|
|
||||||
session_set_cookie_params(0,QUEXS_PATH);
|
|
||||||
|
|
||||||
if ((defined('PHP_SESSION_ACTIVE') && session_status() !== PHP_SESSION_ACTIVE) || !session_id()) {
|
if ((defined('PHP_SESSION_ACTIVE') && session_status() !== PHP_SESSION_ACTIVE) || !session_id()) {
|
||||||
|
session_name(LS_SESSION_NAME);
|
||||||
|
session_set_cookie_params(0,QUEXS_PATH);
|
||||||
session_start();
|
session_start();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -40,12 +40,10 @@ include_once("config.inc.php");
|
|||||||
include_once("db.inc.php");
|
include_once("db.inc.php");
|
||||||
|
|
||||||
|
|
||||||
session_name(LS_SESSION_NAME);
|
|
||||||
|
|
||||||
session_set_cookie_params(0,QUEXS_PATH);
|
|
||||||
|
|
||||||
if ((defined('PHP_SESSION_ACTIVE') && session_status() !== PHP_SESSION_ACTIVE) || !session_id()) {
|
if ((defined('PHP_SESSION_ACTIVE') && session_status() !== PHP_SESSION_ACTIVE) || !session_id()) {
|
||||||
session_start();
|
session_name(LS_SESSION_NAME);
|
||||||
|
session_set_cookie_params(0,QUEXS_PATH);
|
||||||
|
session_start();
|
||||||
}
|
}
|
||||||
|
|
||||||
//check if the session exists or loginID not set
|
//check if the session exists or loginID not set
|
||||||
|
|||||||
@@ -2251,7 +2251,7 @@ function end_case($operator_id)
|
|||||||
AND o.eligible = 1
|
AND o.eligible = 1
|
||||||
AND c.case_id = '$case_id'";
|
AND c.case_id = '$case_id'";
|
||||||
|
|
||||||
if ($l['tryanother'] == 1 && $cm['call_attempt_max'] > 0 && $callattempts >= $cm['call_attempt_max']) //max call attempts reached AND last call to be tried again
|
if (isset($l['tryanother']) && $l['tryanother'] == 1 && $cm['call_attempt_max'] > 0 && $callattempts >= $cm['call_attempt_max']) //max call attempts reached AND last call to be tried again
|
||||||
{
|
{
|
||||||
//if ever eligible, code as eligible
|
//if ever eligible, code as eligible
|
||||||
if ($db->GetOne($eligsql) > 0)
|
if ($db->GetOne($eligsql) > 0)
|
||||||
@@ -2259,7 +2259,7 @@ function end_case($operator_id)
|
|||||||
else
|
else
|
||||||
$outcome = 42;
|
$outcome = 42;
|
||||||
}
|
}
|
||||||
else if ($l['tryanother'] == 1 && $cm['call_max'] > 0 && $calls >= $cm['call_max']) //max calls reached AND last call to be tried again
|
else if (isset($l['tryanother']) && $l['tryanother'] == 1 && $cm['call_max'] > 0 && $calls >= $cm['call_max']) //max calls reached AND last call to be tried again
|
||||||
{
|
{
|
||||||
//if ever eligible, code as eligible
|
//if ever eligible, code as eligible
|
||||||
if ($db->GetOne($eligsql) > 0)
|
if ($db->GetOne($eligsql) > 0)
|
||||||
|
|||||||
@@ -29,6 +29,9 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
include_once(dirname(__FILE__).'/config.inc.php');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The phpgettext package
|
* The phpgettext package
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user