Minor modification to the code segment in common/actions.php , which checks the retur...
[plewww.git] / planetlab / common / actions.php
index 010be21..0f7623e 100644 (file)
@@ -240,7 +240,7 @@ switch ($action) {
    
    $key_id = $api->AddPersonKey( intval( $person_id ), array( "key_type"=> 'ssh', "key"=> $key ) );
    
-   if ( $key_id == 1) 
+   if ( $key_id >= 1) 
      drupal_set_message ("New key added");
    else
      drupal_set_error("Could not add key, please verify your SSH file content\n" . $api->error());