Skip to content

Commit

Permalink
empty bookmark array causes a bug in rss
Browse files Browse the repository at this point in the history
  • Loading branch information
tongyifan committed Jun 7, 2019
1 parent 55f434a commit 83f1fea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion torrentrss.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@
$bookmarkarray = return_torrent_bookmark_array($user['id']);
if ($bookmarkarray) {
$whereidin = implode(",", $bookmarkarray);
$where .= ($where ? " AND " : "") . "torrents.id IN(" . $whereidin . ")";
} else {
$whereidin = 0;
}
$where .= ($where ? " AND " : "") . "torrents.id IN (" . $whereidin . ")";
}
}
$searchstr = mysql_real_escape_string(trim($_GET["search"]));
Expand Down

0 comments on commit 83f1fea

Please sign in to comment.