mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 20:40:49 +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)
|
||||
{
|
||||
global $lang_functions;
|
||||
$userid = $userid ?? 0;
|
||||
$torrentid = $torrentid ?? 0;
|
||||
$userid = intval($userid ?? 0);
|
||||
$torrentid = intval($torrentid ?? 0);
|
||||
$ret = array();
|
||||
$ret = return_torrent_bookmark_array($userid);
|
||||
if (!count($ret) || !in_array($torrentid, $ret, false)) // already bookmarked
|
||||
|
||||
Reference in New Issue
Block a user