Skip to content

Commit

Permalink
fix some php warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomlove committed Sep 24, 2024
1 parent d5aa159 commit f2cd69f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 8 deletions.
4 changes: 2 additions & 2 deletions include/constants.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.13');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2024-09-21');
defined('VERSION_NUMBER') || define('VERSION_NUMBER', '1.8.14');
defined('RELEASE_DATE') || define('RELEASE_DATE', '2024-09-24');
defined('IN_TRACKER') || define('IN_TRACKER', false);
defined('PROJECTNAME') || define("PROJECTNAME","NexusPHP");
defined('NEXUSPHPURL') || define("NEXUSPHPURL","https://nexusphp.org");
Expand Down
1 change: 1 addition & 0 deletions lang/cht/lang_details.php
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,7 @@
'text_creator' => "主創: ",
'submit_search_at_shooter' => "搜索射手網",
'submit_search_at_opensubtitles' => "搜索Opensubtitles",
'title_show_or_hide' => "顯示&nbsp;或&nbsp;隱藏",
'title_bookmark' => "收藏",
'text_album_information' => "專輯資訊:",
'text_about_album' => "關于該專輯:",
Expand Down
2 changes: 1 addition & 1 deletion public/getusertorrentlistajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ function maketable($res, $mode = 'seeding')
return [$ret, $total_size];
}
$count = 0;
$torrentlist = "";
$torrentlist = $pagertop = $pagerbottom = "";
switch ($type)
{
case 'uploaded':
Expand Down
6 changes: 2 additions & 4 deletions public/mybonus.php
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ function bonusarray($option = 0){
stderr($lang_mybonus['std_sorry'],$lang_mybonus['std_karma_system_disabled'].($bonus_tweak == "disablesave" ? "<b>".$lang_mybonus['std_points_active']."</b>" : ""),false);

$action = htmlspecialchars($_GET['action'] ?? '');
$do = htmlspecialchars($_GET['do'] ?? null);
$do = htmlspecialchars($_GET['do'] ?? '');
unset($msg);
if (isset($do)) {
if ($do == "upload")
Expand Down Expand Up @@ -398,7 +398,7 @@ function bonusarray($option = 0){
elseif ($bonusarray['art'] == 'noad'){
if ($enablenoad_advertisement == 'yes' && get_user_class() >= $noad_advertisement)
print("<td class=\"rowfollow\" align=\"center\"><input type=\"submit\" name=\"submit\" value=\"".$lang_mybonus['submit_class_above_no_ad']."\" disabled=\"disabled\" /></td>");
elseif (strtotime($CURUSER['noaduntil']) >= TIMENOW)
elseif (!empty($CURUSER['noaduntil']) && strtotime($CURUSER['noaduntil']) >= TIMENOW)
print("<td class=\"rowfollow\" align=\"center\"><input type=\"submit\" name=\"submit\" value=\"".$lang_mybonus['submit_already_disabled']."\" disabled=\"disabled\" /></td>");
elseif (get_user_class() < $bonusnoad_advertisement)
print("<td class=\"rowfollow\" align=\"center\"><input type=\"submit\" name=\"submit\" value=\"".get_user_class_name($bonusnoad_advertisement,false,false,true).$lang_mybonus['text_plus_only']."\" disabled=\"disabled\" /></td>");
Expand Down Expand Up @@ -550,8 +550,6 @@ function bonusarray($option = 0){
print("<li>".$lang_mybonus['text_offer_vote'].$offervote_bonus.$lang_mybonus['text_point'].add_s($offervote_bonus)."</li>");
if ($funboxvote_bonus > 0)
print("<li>".$lang_mybonus['text_funbox_vote'].$funboxvote_bonus.$lang_mybonus['text_point'].add_s($funboxvote_bonus)."</li>");
if ($ratetorrent_bonus > 0)
print("<li>".$lang_mybonus['text_rate_torrent'].$ratetorrent_bonus.$lang_mybonus['text_point'].add_s($ratetorrent_bonus)."</li>");
if ($saythanks_bonus > 0)
print("<li>".$lang_mybonus['text_say_thanks'].$saythanks_bonus.$lang_mybonus['text_point'].add_s($saythanks_bonus)."</li>");
if ($receivethanks_bonus > 0)
Expand Down
2 changes: 1 addition & 1 deletion public/torrentrss.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ function hex_esc($matches) {

$ANDOR = ($search_mode == 0 ? " AND " : " OR "); // only affects mode 0 and mode 1
foreach ($like_expression_array as &$like_expression_array_element)
$like_expression_array_element = "(torrents.name" . $like_expression_array_element.($_GET['ismalldescr'] ? " OR torrents.small_descr". $like_expression_array_element : "").")";
$like_expression_array_element = "(torrents.name" . $like_expression_array_element.(!empty($_GET['ismalldescr']) ? " OR torrents.small_descr". $like_expression_array_element : "").")";
$wherea[] = implode($ANDOR, $like_expression_array);
$where .= ($where ? " AND " : "") . implode(" AND ", $wherea);
}
Expand Down

0 comments on commit f2cd69f

Please sign in to comment.