| @@ 570-582 (lines=13) @@ | ||
| 567 | 'delete' => 'delete', |
|
| 568 | ) |
|
| 569 | ); |
|
| 570 | while ($row = $smcFunc['db_fetch_assoc']($request)) |
|
| 571 | { |
|
| 572 | if (@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. |
|
| @@ 4084-4096 (lines=13) @@ | ||
| 4081 | 'delete' => 'delete', |
|
| 4082 | ) |
|
| 4083 | ); |
|
| 4084 | while ($row = $smcFunc['db_fetch_assoc']($request)) |
|
| 4085 | { |
|
| 4086 | 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) |
|
| 4087 | $smcFunc['db_query']('', ' |
|
| 4088 | UPDATE {db_prefix}log_actions |
|
| 4089 | SET extra = {string:extra} |
|
| 4090 | WHERE id_action = {int:current_action}', |
|
| 4091 | array( |
|
| 4092 | 'current_action' => $row['id_action'], |
|
| 4093 | 'extra' => $matches[1] . strlen($matches[3]) . ':"' . $matches[3] . '"' . $matches[4], |
|
| 4094 | ) |
|
| 4095 | ); |
|
| 4096 | } |
|
| 4097 | $smcFunc['db_free_result']($request); |
|
| 4098 | ||
| 4099 | if ($upcontext['dropping_index'] && $command_line) |
|