Commits

Michele Bini committed 5ed02bc

Fix to key generation script

Comments (0)

Files changed (2)

+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.
 
 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) {
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.