Minor modification to the code segment in common/actions.php , which checks the retur...
authorAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Mon, 20 Apr 2009 12:43:59 +0000 (12:43 +0000)
committerAnil-Kumar Vengalil <Anil-Kumar.Vengalil@sophia.inria.fr>
Mon, 20 Apr 2009 12:43:59 +0000 (12:43 +0000)
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());