Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2457

[3.3.x] Support Forum • Re: [phpBB Debug] PHP Warning in Recent Topics

$
0
0
Before trying this fix, please BACKUP your existing file!
assuming this is your line

Code:

$result = $this->run_step($steps[$step], $last_result, $revert);
FIND

Code:

$result = $this->run_step($steps[$step], $last_result, $revert);if (($result !== null && $result !== true) || $step + 1 < count($steps)){return array('result'=> $result,// Move on if the last call finished'step'=> ($result !== null && $result !== true) ? $step : $step + 1,);}
REPLACE WITH THIS

Code:

if (array_key_exists($step, $steps)) {$result = $this->run_step($steps[$step], $last_result, $revert);if (($result !== null && $result !== true) || $step + 1 < count($steps)) {return array('result' => $result,// Move on if the last call finished'step' => ($result !== null && $result !== true) ? $step : $step + 1,);}} else {return array('result' => null,'step' => $step,);}

Statistics: Posted by Helter Skelter — Wed Sep 18, 2024 10:05 pm



Viewing all articles
Browse latest Browse all 2457

Trending Articles