fix two issues (php notice level) with html/rss.php

- Undefined index: HTTPS in rss.php on line 8
- Undefined property: RSSCreator20::$cssStyleSheet in
  feedcreator.class.php on line 591

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
elij 2011-05-28 14:28:59 -07:00 committed by Lukas Fleischer
parent 4a24bca069
commit 4c9da512af

View file

@ -5,10 +5,12 @@ include_once("aur.inc");
include_once("feedcreator.class.php"); include_once("feedcreator.class.php");
#detect prefix #detect prefix
$protocol = $_SERVER["HTTPS"]=='on' ? "https" : "http"; $protocol = isset($_SERVER["HTTPS"]) && $_SERVER["HTTPS"]=='on' ? "https" : "http";
$host = $_SERVER['HTTP_HOST']; $host = $_SERVER['HTTP_HOST'];
$rss = new RSSCreator20(); $rss = new RSSCreator20();
$rss->cssStyleSheet = false;
$rss->xslStyleSheet = false;
# Use UTF-8 (fixes FS#10706). # Use UTF-8 (fixes FS#10706).
$rss->encoding = "UTF-8"; $rss->encoding = "UTF-8";