Zeile 49 | Zeile 49 |
---|
if($mybb->input['forum_type'] == 2) {
|
if($mybb->input['forum_type'] == 2) {
|
if(count($mybb->input['forum_1_forums']) < 1)
| if(is_array($mybb->input['forum_1_forums']) && count($mybb->input['forum_1_forums']) < 1)
|
{ $errors[] = $lang->error_no_forums_selected; }
| { $errors[] = $lang->error_no_forums_selected; }
|
Zeile 64 | Zeile 64 |
---|
if($mybb->input['group_type'] == 2) {
|
if($mybb->input['group_type'] == 2) {
|
if(count($mybb->input['group_1_groups']) < 1)
| if(is_array($mybb->input['group_1_groups']) && count($mybb->input['group_1_groups']) < 1)
|
{ $errors[] = $lang->error_no_groups_selected; }
| { $errors[] = $lang->error_no_groups_selected; }
|
Zeile 125 | Zeile 125 |
---|
$plugins->run_hooks('admin_config_thread_prefixes_add_prefix_commit');
// Log admin action
|
$plugins->run_hooks('admin_config_thread_prefixes_add_prefix_commit');
// Log admin action
|
log_admin_action($pid, htmlspecialchars_uni($mybb->input['prefix']));
| log_admin_action($pid, $mybb->input['prefix']);
|
$cache->update_threadprefixes();
flash_message($lang->success_thread_prefix_created, 'success');
| $cache->update_threadprefixes();
flash_message($lang->success_thread_prefix_created, 'success');
|
Zeile 251 | Zeile 251 |
---|
if($mybb->input['forum_type'] == 2) {
|
if($mybb->input['forum_type'] == 2) {
|
if(count($mybb->input['forum_1_forums']) < 1)
| if(is_array($mybb->input['forum_1_forums']) && count($mybb->input['forum_1_forums']) < 1)
|
{ $errors[] = $lang->error_no_forums_selected; }
| { $errors[] = $lang->error_no_forums_selected; }
|
Zeile 266 | Zeile 266 |
---|
if($mybb->input['group_type'] == 2) {
|
if($mybb->input['group_type'] == 2) {
|
if(count($mybb->input['group_1_groups']) < 1)
| if(is_array($mybb->input['group_1_groups']) && count($mybb->input['group_1_groups']) < 1)
|
{ $errors[] = $lang->error_no_groups_selected; }
| { $errors[] = $lang->error_no_groups_selected; }
|
Zeile 327 | Zeile 327 |
---|
$db->update_query('threadprefixes', $update_prefix, "pid='{$prefix['pid']}'");
// Log admin action
|
$db->update_query('threadprefixes', $update_prefix, "pid='{$prefix['pid']}'");
// Log admin action
|
log_admin_action($prefix['pid'], htmlspecialchars_uni($mybb->input['prefix']));
| log_admin_action($prefix['pid'], $mybb->input['prefix']);
|
$cache->update_threadprefixes();
flash_message($lang->success_thread_prefix_updated, 'success');
| $cache->update_threadprefixes();
flash_message($lang->success_thread_prefix_updated, 'success');
|
Zeile 489 | Zeile 489 |
---|
$db->update_query('threads', $update_threads, "prefix='{$prefix['pid']}'");
// Log admin action
|
$db->update_query('threads', $update_threads, "prefix='{$prefix['pid']}'");
// Log admin action
|
log_admin_action($prefix['pid'], htmlspecialchars_uni($prefix['prefix']));
| log_admin_action($prefix['pid'], $prefix['prefix']);
|
$cache->update_threadprefixes();
flash_message($lang->success_thread_prefix_deleted, 'success');
| $cache->update_threadprefixes();
flash_message($lang->success_thread_prefix_deleted, 'success');
|