diff --git a/include/news.php b/include/news.php
index 2e818657..694a46f8 100644
--- a/include/news.php
+++ b/include/news.php
@@ -46,6 +46,8 @@ function list_latest_news ($num = -1) {
if (ereg("
(.*)", $data, $out)) {
$newsitem["img"] = $out[1];
+ } else {
+ $newsitem["img"] = "";
}
if (ereg("
(.*)", $data, $out)) {
diff --git a/include/scr-categories.php b/include/scr-categories.php
index 3d61bc1d..53a11e7d 100644
--- a/include/scr-categories.php
+++ b/include/scr-categories.php
@@ -40,7 +40,7 @@ class category {
$this->_name = $name;
$this->_catnum = $catnum;
- array_push($categories, & $this);
+ $categories[] = &$this;
}
function add($scrnum, $filename, $description) {
@@ -64,7 +64,7 @@ class category {
}
// LEC games
-$cat = & new category(0, "LucasArts games");
+$cat = new category(0, "LucasArts games");
$cat->add(0, "cat-maniac.png", "Maniac Mansion");
$cat->add(1, "cat-zak.png", "Zak McKracken and the Alien Mindbenders");
diff --git a/index.php b/index.php
index 8d59677a..c06f158a 100644
--- a/index.php
+++ b/index.php
@@ -8,7 +8,12 @@ require($file_root."/include/"."news.php");
html_page_header('ScummVM :: Home', array("index.css"));
-$shownews = $HTTP_GET_VARS['shownews'];
+if (array_key_exists('shownews', $HTTP_GET_VARS)) {
+ $shownews = $HTTP_GET_VARS['shownews'];
+} else {
+ $shownews = 0;
+}
+
// display welcome table
// don't show this if we are in news mode
diff --git a/news/20020214.png b/news/20020214.png
index b667ebd3..ae7dc283 100644
Binary files a/news/20020214.png and b/news/20020214.png differ
diff --git a/news/20020308.png b/news/20020308.png
new file mode 100644
index 00000000..72884eb4
Binary files /dev/null and b/news/20020308.png differ
diff --git a/news/20020308.xml b/news/20020308.xml
index 22f2a245..759cdcc8 100644
--- a/news/20020308.xml
+++ b/news/20020308.xml
@@ -1,7 +1,7 @@
Some Fairly Major Updates
March 8, 2002
![]()
laxdragon