SMF 2.0.x and PHP 7.1 mark board as read [] operator not supported for strings

Started by vbgamer45, June 07, 2017, 01:40:57 PM

Previous topic - Next topic

vbgamer45

Marking a board as read results in "operator not supported for strings" on SMF 2.0.x using PHP 7.1

https://www.simplemachines.org/community/index.php?topic=554409.0

Affected code and bug fix:
Sources\Subs-Boards.php         

$logBoardInserts = '';
while ($row = $smcFunc['db_fetch_assoc']($result))
$logBoardInserts[] = array($modSettings['maxMsgID'], $user_info['id'], $row['id_board']);



Find change to

$logBoardInserts = array();
while ($row = $smcFunc['db_fetch_assoc']($result))
$logBoardInserts[] = array($modSettings['maxMsgID'], $user_info['id'], $row['id_board']);

Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Colin

"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Colin

"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Advertisement: