[audacity] r14010 committed - Fix for another PHP Notice: Undefined index.

5 views
Skip to first unread message

auda...@googlecode.com

unread,
Jul 27, 2015, 7:47:13 PM7/27/15
to audaci...@googlegroups.com
Revision: 14010
Author: bua...@gmail.com
Date: Mon Jul 27 23:47:04 2015 UTC
Log: Fix for another PHP Notice: Undefined index.

https://code.google.com/p/audacity/source/detail?r=14010

Modified:
/website/trunk/htdocs/about/news.php

=======================================
--- /website/trunk/htdocs/about/news.php Sun Jan 24 13:33:28 2010 UTC
+++ /website/trunk/htdocs/about/news.php Mon Jul 27 23:47:04 2015 UTC
@@ -8,7 +8,7 @@
require_once "../include/news.inc.php";
$pageId = "news";

- $itemId = $_REQUEST["id"];
+ $itemId = array_key_exists('id',$_REQUEST) ? $_REQUEST["id"] : "";

if ($itemId != "") {
$news_item = $news_items[$itemId];
Reply all
Reply to author
Forward
0 new messages