Zeile 362 | Zeile 362 |
---|
*/ function update_user($method='insert') {
|
*/ function update_user($method='insert') {
|
global $db, $mybb, $lang;
| global $db, $mybb, $lang, $cache, $groupscache;
|
if($mybb->settings['maxwarningpoints'] < 1) { $mybb->settings['maxwarningpoints'] = 10;
|
if($mybb->settings['maxwarningpoints'] < 1) { $mybb->settings['maxwarningpoints'] = 10;
|
| }
if(!is_array($groupscache)) { $groupscache = $cache->read("usergroups");
|
}
$warning = &$this->data;
| }
$warning = &$this->data;
|
Zeile 587 | Zeile 592 |
---|
{ case 1: // Ban // we'll have to resort to letting the admin/mod remove the ban manually, since there's an issue if stacked bans are in force...
|
{ case 1: // Ban // we'll have to resort to letting the admin/mod remove the ban manually, since there's an issue if stacked bans are in force...
|
continue;
| continue 2;
|
case 2: // Revoke posting $current_expiry_field = 'suspensiontime'; $current_inforce_field = 'suspendposting';
| case 2: // Revoke posting $current_expiry_field = 'suspensiontime'; $current_inforce_field = 'suspendposting';
|