From 4f4669bbaf422eb9fdd344a8f9a966108971d45a Mon Sep 17 00:00:00 2001 From: Anil-Kumar Vengalil Date: Mon, 20 Apr 2009 12:43:59 +0000 Subject: [PATCH] Minor modification to the code segment in common/actions.php , which checks the return value of AddPersonKey --- planetlab/common/actions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/planetlab/common/actions.php b/planetlab/common/actions.php index 010be21..0f7623e 100644 --- a/planetlab/common/actions.php +++ b/planetlab/common/actions.php @@ -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()); -- 2.43.0