diff --git a/src/Legacy/Ajax.php b/src/Legacy/Ajax.php index f779a72da..42a4d0aad 100644 --- a/src/Legacy/Ajax.php +++ b/src/Legacy/Ajax.php @@ -101,14 +101,14 @@ class Ajax case 'guest': break; - // USER + // USER case 'user': if (IS_GUEST) { $this->ajax_die($lang['NEED_TO_LOGIN_FIRST']); } break; - // MOD + // MOD case 'mod': if (!IS_AM) { $this->ajax_die($lang['ONLY_FOR_MOD']); @@ -116,7 +116,7 @@ class Ajax $this->check_admin_session(); break; - // ADMIN + // ADMIN case 'admin': if (!IS_ADMIN) { $this->ajax_die($lang['ONLY_FOR_ADMIN']); @@ -124,7 +124,7 @@ class Ajax $this->check_admin_session(); break; - // SUPER_ADMIN + // SUPER_ADMIN case 'super_admin': if (!IS_SUPER_ADMIN) { $this->ajax_die($lang['ONLY_FOR_SUPER_ADMIN']); diff --git a/src/Legacy/Torrent.php b/src/Legacy/Torrent.php index bdbdee9ec..e7eb33b17 100644 --- a/src/Legacy/Torrent.php +++ b/src/Legacy/Torrent.php @@ -719,7 +719,6 @@ class Torrent $attempts = $success = $response = 0; while (!$success && $attempts++ < $max_attempts) { - // Send request $file = fsockopen($bb_cfg['ocelot']['host'], $bb_cfg['ocelot']['port'], $error_num, $error_string); if ($file) {