Skip to content

Commit

Permalink
Fixed issue #19293: Can't take survey after adding language in PHP 8.1 (
Browse files Browse the repository at this point in the history
#3658)

Co-authored-by: lapiudevgit <devgit@lapiu.biz>
  • Loading branch information
gabrieljenik and lapiudevgit committed Dec 12, 2023
1 parent 90f482c commit 92a247a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/helpers/SurveyRuntimeHelper.php
Expand Up @@ -1382,7 +1382,7 @@ private function moveSubmitIfNeeded()

/**
* Check in a string if it uses expressions to replace them
* @param string $sString the string to evaluate
* @param string|null $sString the string to evaluate
* @param integer $numRecursionLevels - the number of times to recursively subtitute values in this string
* @param boolean $static - return static string
* @return string
Expand All @@ -1392,7 +1392,7 @@ private function processString($sString, $iRecursionLevel = 1, $static = false)
{
$sProcessedString = $sString;

if ((strpos($sProcessedString, "{") !== false)) {
if ((strpos((string) $sProcessedString, "{") !== false)) {
// process string anyway so that it can be pretty-printed
$aStandardsReplacementFields = getStandardsReplacementFields($this->aSurveyInfo);
$sProcessedString = LimeExpressionManager::ProcessStepString($sString, $aStandardsReplacementFields, $iRecursionLevel, $static);
Expand Down

0 comments on commit 92a247a

Please sign in to comment.