| @@ 1311-1319 (lines=9) @@ | ||
| 1308 | } |
|
| 1309 | } |
|
| 1310 | // Don't remove stat collection unless we unchecked the box for real, not from the loop. |
|
| 1311 | elseif (empty($_POST['stats']) && empty($upcontext['allow_sm_stats'])) |
|
| 1312 | $smcFunc['db_query']('', ' |
|
| 1313 | DELETE FROM {db_prefix}settings |
|
| 1314 | WHERE variable = {string:enable_sm_stats}', |
|
| 1315 | array( |
|
| 1316 | 'enable_sm_stats' => 'enable_sm_stats', |
|
| 1317 | 'db_error_skip' => true, |
|
| 1318 | ) |
|
| 1319 | ); |
|
| 1320 | ||
| 1321 | // Are we enabling SSL? |
|
| 1322 | if (!empty($_POST['force_ssl'])) |
|
| @@ 1005-1013 (lines=9) @@ | ||
| 1002 | } |
|
| 1003 | } |
|
| 1004 | // Don't remove stat collection unless we unchecked the box for real, not from the loop. |
|
| 1005 | elseif (empty($_POST['stats']) && empty($upcontext['allow_sm_stats'])) |
|
| 1006 | $smcFunc['db_query']('', ' |
|
| 1007 | DELETE FROM {db_prefix}settings |
|
| 1008 | WHERE variable = {string:enable_sm_stats}', |
|
| 1009 | array( |
|
| 1010 | 'enable_sm_stats' => 'enable_sm_stats', |
|
| 1011 | 'db_error_skip' => true, |
|
| 1012 | ) |
|
| 1013 | ); |
|
| 1014 | ||
| 1015 | // Deleting old karma stuff? |
|
| 1016 | if (!empty($_POST['delete_karma'])) |
|