Commits

Michele Bini committed b059b57 Merge

Merge branch 'debian' into dev

  • Participants
  • Parent commits 86c3d44, 5ed02bc

Comments (0)

Files changed (2)

File debian/changelog

+timekoin (1.9-deb37-dev3) unstable; urgency=low
+
+  * Fix to key generation script.
+
+ -- Michele Bini <michele.bini@gmail.com>  Fri, 21 Sep 2012 01:30:23 +0200
+
 timekoin (1.9-deb36-dev1) unstable; urgency=low
 
   * Made time synchronization check asynchronous.

File util/keys.php

 
 global $keys_cmdline;
 
-$keys_cmdline == ($_GET['cmdline'] == 1);
+$keys_cmdline = ((isset($_GET['cmdline']) && ($_GET['cmdline'] == 1)));
 
 function println($l) {
   global $keys_cmdline;
   println("mySQL select database failed...");
 }
 
-if ($_GET['resetkeys'] != 1) {
+if ((!isset($_GET['resetkeys'])) || ($_GET['resetkeys'] != 1)) {
   $sql = "SELECT field_data FROM my_keys where field_name = 'server_private_key' LIMIT 1";
   $result = mysql_query($sql);
   if ($result === FALSE) {