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

[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,);}
Note Most of the devs here will probably disagree with this fix since it alters core code and could possibly cause trouble with future phpBB updates so as Mick suggested, check the extension thread for a fix first

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



Viewing all articles
Browse latest Browse all 567

Trending Articles