Deprecated each() function in php 7.2

This commit is contained in:
Yuriy Pikhtarev 2017-02-26 01:44:28 +03:00
commit 3d817078a6
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
15 changed files with 49 additions and 45 deletions

View file

@ -152,7 +152,7 @@ function generate_smilies($mode)
$row = 0;
$col = 0;
while (list($smile_url, $data) = @each($rowset)) {
foreach ($rowset as $smile_url => $data) {
if (!$col) {
$template->assign_block_vars('smilies_row', array());
}