Skip to content

Commit

Permalink
Fix compatibility issue with PHP 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
loocars committed May 29, 2024
1 parent 2a162da commit da25240
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
1.9.41
Frontend:
* FIX: Fix PHP 5.4 compatibility issue (syntax error, unexpected 'list')
* Added option "line_width" to default section of global config
* FIX: Fix failing reporting of errors when messages contained special characters

Expand Down
4 changes: 3 additions & 1 deletion share/server/core/classes/CoreModMultisite.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,9 @@ private function getMaps($maps) {
$_BACKEND->execute();

$aMaps = Array();
foreach($aObjs AS list($MAP, $state)) {
foreach($aObjs AS $aObj) {
$MAP = $aObj[0];
$state = $aObj[1];
if ($state !== null) {
$MAP->clearMembers();
$MAP->setState($state);
Expand Down

0 comments on commit da25240

Please sign in to comment.