r21955 - htdocs/branches/beta - Fix the if and switch statements.

Cristian Marchi cmarchi at code.gnucash.org
Sat Feb 4 04:01:19 EST 2012


Author: cmarchi
Date: 2012-02-04 04:01:19 -0500 (Sat, 04 Feb 2012)
New Revision: 21955
Trac: http://svn.gnucash.org/trac/changeset/21955

Modified:
   htdocs/branches/beta/docs.phtml
Log:
Fix the if and switch statements.

Modified: htdocs/branches/beta/docs.phtml
===================================================================
--- htdocs/branches/beta/docs.phtml	2012-02-04 08:58:24 UTC (rev 21954)
+++ htdocs/branches/beta/docs.phtml	2012-02-04 09:01:19 UTC (rev 21955)
@@ -15,8 +15,8 @@
 $l_arg = parse_url($_SERVER['REQUEST_URI']);
 print_r($l_arg);
 echo $l_arg[query];
-if ($l_arg) { /* There is a language argument */
-  switch ($l_arg) {
+if ($l_arg[query]) { /* There is a language argument */
+  switch ($l_arg[query]) {
     case "lang=de_DE":
         $langpath = "de_DE";
         break;



More information about the gnucash-changes mailing list