Commits

Michele Bini committed 5ed02bc

Fix to key generation script

  • Participants
  • Parent commits d77efe5

Comments (0)

Files changed (2)

File debian/changelog

+timekoin (1.9-deb37) 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) unstable; urgency=low
 
   * Made activity icons more uniform.

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) {