Hello folks,
I am forwarding this e-mail to the main Freeciv development list.

So young, and the metaserver project already has a bug report and patch.
:-)

---------- Forwarded message ----------
From: Carl <[EMAIL PROTECTED]>
Date: Aug 21, 2007 6:30 PM
Subject: Variable array var = { ...} is not displayed
To: Vasco Alexandre da Silva Costa <[EMAIL PROTECTED]>



Please could you apply this patch. Variable array var = { ...} is not
displayed since players exist bcs variables $row["host"] and $row["port"] are
erase by the query.

I have posted ticket (PR#39598) at [EMAIL PROTECTED] Could close it in
same times. Tks

diff -urda trunk/metaserver.phtml orig/metaserver.phtml
--- orig/metaserver.phtml       2007-08-21 19:10:17.000000000 +0200
+++ trunk/metaserver.phtml      2007-08-21 19:17:40.000000000 +0200
@@ -262,6 +262,7 @@
         }

         $stmt="select * from players where
hostport=\"".$row["host"].":".$row["port"]."\" order by name";
+        $stmt2="select * from variables where
hostport=\"".$row["host"].":".$row["port"]."\"";
         $res1 = fcdb_exec($stmt);
         $nr1 = fcdb_num_rows($res1);
         $output .= "nplayers = \"$nr1\"\n";
@@ -278,8 +279,7 @@
           $output .= "}\n";
         }

-        $stmt="select * from variables where
hostport=\"".$row["host"].":".$row["port"]."\"";
-        $res2 = fcdb_exec($stmt);
+        $res2 = fcdb_exec($stmt2);
         $nr2 = fcdb_num_rows($res2);
         if ($nr2 > 0) {
           $output .= "vars = { \"name\", \"value\"\n";



Regards


_______________________________________________
  Message posté via/par Gna!
  http://gna.org/

-- 
Vasco Alexandre da Silva Costa

_______________________________________________
Freeciv-dev mailing list
Freeciv-dev@gna.org
https://mail.gna.org/listinfo/freeciv-dev

Reply via email to