2
0
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:
Adam Zammit
2019-01-16 15:18:42 +11:00
parent 3ec7ff33f1
commit e6872a837f
4 changed files with 10 additions and 11 deletions

View File

@@ -2251,7 +2251,7 @@ function end_case($operator_id)
AND o.eligible = 1
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 ($db->GetOne($eligsql) > 0)
@@ -2259,7 +2259,7 @@ function end_case($operator_id)
else
$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 ($db->GetOne($eligsql) > 0)