fix warning: Undefined array key

This commit is contained in:
xiaomlove
2021-05-14 01:00:59 +08:00
parent 12b370f2e8
commit 514294530c
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -52,7 +52,7 @@ if (@ini_get('output_handler') == 'ob_gzhandler' AND @ob_get_length() !== false)
header('Content-Encoding:');
}
*/
if ($_COOKIE["c_secure_tracker_ssl"] == base64("yeah"))
if (isset($_COOKIE["c_secure_tracker_ssl"]) && $_COOKIE["c_secure_tracker_ssl"] == base64("yeah"))
$tracker_ssl = true;
else
$tracker_ssl = false;
+4 -4
View File
@@ -154,11 +154,11 @@ while ($row = mysql_fetch_array($res))
if ($dllink)
$itemdlurl = $url."/download.php?id=".$row['id']."&passkey=".rawurlencode($passkey);
else $itemdlurl = $url."/download.php?id=".$row['id'];
if ($_GET['icat']) $title .= "[".$row['cat_name']."]";
if (!empty($_GET['icat'])) $title .= "[".$row['cat_name']."]";
$title .= $row['name'];
if ($_GET['ismalldescr'] && $row['small_descr']) $title .= "[".$row['small_descr']."]";
if ($_GET['isize']) $title .= "[".mksize($row['size'])."]";
if ($_GET['iuplder']) $title .= "[".$author."]";
if (!empty($_GET['ismalldescr']) && !empty($row['small_descr'])) $title .= "[".$row['small_descr']."]";
if (!empty($_GET['isize'])) $title .= "[".mksize($row['size'])."]";
if (!empty($_GET['iuplder'])) $title .= "[".$author."]";
$content = format_comment($row['descr'], true, false, false, false);
print(' <item>
<title><![CDATA['.$title.']]></title>