| @@ 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. |
|
| @@ 2927-2939 (lines=13) @@ | ||
| 2924 | 'delete' => 'delete', |
|
| 2925 | ) |
|
| 2926 | ); |
|
| 2927 | while ($row = $smcFunc['db_fetch_assoc']($request)) |
|
| 2928 | { |
|
| 2929 | 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) |
|
| 2930 | $smcFunc['db_query']('', ' |
|
| 2931 | UPDATE {db_prefix}log_actions |
|
| 2932 | SET extra = {string:extra} |
|
| 2933 | WHERE id_action = {int:current_action}', |
|
| 2934 | array( |
|
| 2935 | 'current_action' => $row['id_action'], |
|
| 2936 | 'extra' => $matches[1] . strlen($matches[3]) . ':"' . $matches[3] . '"' . $matches[4], |
|
| 2937 | ) |
|
| 2938 | ); |
|
| 2939 | } |
|
| 2940 | $smcFunc['db_free_result']($request); |
|
| 2941 | ||
| 2942 | if ($upcontext['dropping_index'] && $command_line) |
|