r22545 - htdocs/trunk - Fix php warnings

Geert Janssens gjanssens at code.gnucash.org
Wed Nov 14 03:39:19 EST 2012


Author: gjanssens
Date: 2012-11-14 03:39:18 -0500 (Wed, 14 Nov 2012)
New Revision: 22545
Trac: http://svn.gnucash.org/trac/changeset/22545

Modified:
   htdocs/trunk/atom.php
   htdocs/trunk/externals/header.phtml
Log:
Fix php warnings

Modified: htdocs/trunk/atom.php
===================================================================
--- htdocs/trunk/atom.php	2012-11-13 12:32:09 UTC (rev 22544)
+++ htdocs/trunk/atom.php	2012-11-14 08:39:18 UTC (rev 22545)
@@ -4,10 +4,9 @@
   $top_dir = ".";
 
   $contentType = "application/atom+xml";
-  $overrideContentType = $_GET["content-type"];
-  if (isset($overrideContentType))
+  if (isset($_GET["content-type"]))
   {
-    $contentType = $overrideContentType;
+    $contentType = $_GET["content-type"];
   }
   $charset = "iso-8859-1";
   header("Content-Type: $contentType; charset=$charset");

Modified: htdocs/trunk/externals/header.phtml
===================================================================
--- htdocs/trunk/externals/header.phtml	2012-11-13 12:32:09 UTC (rev 22544)
+++ htdocs/trunk/externals/header.phtml	2012-11-14 08:39:18 UTC (rev 22545)
@@ -14,7 +14,7 @@
 {
   if (isset($lang) && $lang != "")
   {
-    $get_parms[lang] = $lang;
+    $get_parms["lang"] = $lang;
   }
   $url_get_query = http_build_query ($get_parms);
   $lang_href = "$page"."?"."$url_get_query";



More information about the gnucash-changes mailing list