Useless return.

This commit is contained in:
Yuriy Pikhtarev 2017-06-30 22:10:43 +03:00
commit 74c84c7759
No known key found for this signature in database
GPG key ID: 3A9B5A757B48ECC6
5 changed files with 0 additions and 12 deletions

View file

@ -41,8 +41,6 @@ function generate_user_info(&$row, $date_format, $group_mod, &$from, &$posts, &$
} else { } else {
$www = ''; $www = '';
} }
return;
} }
$user->session_start(array('req_login' => true)); $user->session_start(array('req_login' => true));

View file

@ -64,7 +64,6 @@ class Xcache extends Common
xcache_clear_cache(XC_TYPE_PHP, 0); xcache_clear_cache(XC_TYPE_PHP, 0);
xcache_clear_cache(XC_TYPE_VAR, 0); xcache_clear_cache(XC_TYPE_VAR, 0);
return;
} }
public function is_installed() public function is_installed()

View file

@ -46,21 +46,17 @@ function run_jobs($jobs)
END END
WHERE cron_id IN ($jobs) WHERE cron_id IN ($jobs)
"); ");
return;
} }
function delete_jobs($jobs) function delete_jobs($jobs)
{ {
OLD_DB()->query('DELETE FROM ' . BB_CRON . " WHERE cron_id IN ($jobs)"); OLD_DB()->query('DELETE FROM ' . BB_CRON . " WHERE cron_id IN ($jobs)");
return;
} }
function toggle_active($jobs, $cron_action) function toggle_active($jobs, $cron_action)
{ {
$active = ($cron_action == 'disable') ? 0 : 1; $active = ($cron_action == 'disable') ? 0 : 1;
OLD_DB()->query('UPDATE ' . BB_CRON . " SET cron_active = $active WHERE cron_id IN ($jobs)"); OLD_DB()->query('UPDATE ' . BB_CRON . " SET cron_active = $active WHERE cron_id IN ($jobs)");
return;
} }
function validate_cron_post($cron_arr) function validate_cron_post($cron_arr)

View file

@ -41,7 +41,6 @@ function update_table_bool($table_name, $key, $field_name, $field_def_val)
} }
} }
} }
return;
} }
function set_tpl_vars($default_cfg, $cfg) function set_tpl_vars($default_cfg, $cfg)

View file

@ -160,8 +160,6 @@ function delete_torrent($attach_id, $mode = '')
torrent_auth_check($forum_id, $poster_id); torrent_auth_check($forum_id, $poster_id);
tracker_unregister($attach_id); tracker_unregister($attach_id);
delete_attachment(0, $attach_id); delete_attachment(0, $attach_id);
return;
} }
function change_tor_status($attach_id, $new_tor_status) function change_tor_status($attach_id, $new_tor_status)
@ -360,8 +358,6 @@ function tracker_register($attach_id, $mode = '', $tor_status = TOR_NOT_APPROVED
$mess = sprintf(trans('messages.BT_REGISTERED'), DOWNLOAD_URL . $attach_id); $mess = sprintf(trans('messages.BT_REGISTERED'), DOWNLOAD_URL . $attach_id);
bb_die($mess); bb_die($mess);
} }
return;
} }
function send_torrent_with_passkey($filename) function send_torrent_with_passkey($filename)