| @@ 570-582 (lines=13) @@ | ||
| 567 | 'delete' => 'delete', |
|
| 568 | ) |
|
| 569 | ); |
|
| 570 | while ($row = $smcFunc['db_fetch_assoc']($request)) |
|
| 571 | { |
|
| 572 | if (safe_unserialize($row['extra']) === false && preg_match('~^(a:3:{s:5:"topic";i:\d+;s:7:"subject";s:)(\d+):"(.+)"(;s:6:"member";s:5:"\d+";})$~', $row['extra'], $matches) === 1) |
|
| 573 | $smcFunc['db_query']('', ' |
|
| 574 | UPDATE {db_prefix}log_actions |
|
| 575 | SET extra = {string:extra} |
|
| 576 | WHERE id_action = {int:current_action}', |
|
| 577 | array( |
|
| 578 | 'current_action' => $row['id_action'], |
|
| 579 | 'extra' => $matches[1] . strlen($matches[3]) . ':"' . $matches[3] . '"' . $matches[4], |
|
| 580 | ) |
|
| 581 | ); |
|
| 582 | } |
|
| 583 | $smcFunc['db_free_result']($request); |
|
| 584 | ||
| 585 | // Refresh some cached data. |
|
| @@ 2886-2898 (lines=13) @@ | ||
| 2883 | 'delete' => 'delete', |
|
| 2884 | ) |
|
| 2885 | ); |
|
| 2886 | while ($row = $smcFunc['db_fetch_assoc']($request)) |
|
| 2887 | { |
|
| 2888 | if (@safe_unserialize($row['extra']) === false && preg_match('~^(a:3:{s:5:"topic";i:\d+;s:7:"subject";s:)(\d+):"(.+)"(;s:6:"member";s:5:"\d+";})$~', $row['extra'], $matches) === 1) |
|
| 2889 | $smcFunc['db_query']('', ' |
|
| 2890 | UPDATE {db_prefix}log_actions |
|
| 2891 | SET extra = {string:extra} |
|
| 2892 | WHERE id_action = {int:current_action}', |
|
| 2893 | array( |
|
| 2894 | 'current_action' => $row['id_action'], |
|
| 2895 | 'extra' => $matches[1] . strlen($matches[3]) . ':"' . $matches[3] . '"' . $matches[4], |
|
| 2896 | ) |
|
| 2897 | ); |
|
| 2898 | } |
|
| 2899 | $smcFunc['db_free_result']($request); |
|
| 2900 | ||
| 2901 | if ($upcontext['dropping_index'] && $command_line) |
|