mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
keep some default value be integer 3
This commit is contained in:
@@ -2934,8 +2934,8 @@ function return_torrent_bookmark_array($userid)
|
|||||||
function get_torrent_bookmark_state($userid, $torrentid, $text = false)
|
function get_torrent_bookmark_state($userid, $torrentid, $text = false)
|
||||||
{
|
{
|
||||||
global $lang_functions;
|
global $lang_functions;
|
||||||
$userid = $userid ?? 0;
|
$userid = intval($userid ?? 0);
|
||||||
$torrentid = $torrentid ?? 0;
|
$torrentid = intval($torrentid ?? 0);
|
||||||
$ret = array();
|
$ret = array();
|
||||||
$ret = return_torrent_bookmark_array($userid);
|
$ret = return_torrent_bookmark_array($userid);
|
||||||
if (!count($ret) || !in_array($torrentid, $ret, false)) // already bookmarked
|
if (!count($ret) || !in_array($torrentid, $ret, false)) // already bookmarked
|
||||||
|
|||||||
Reference in New Issue
Block a user