From: Anil-Kumar Vengalil Date: Mon, 20 Apr 2009 12:43:59 +0000 (+0000) Subject: Minor modification to the code segment in common/actions.php , which checks the retur... X-Git-Tag: PLEWWW-4.3-9~6 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=4f4669bbaf422eb9fdd344a8f9a966108971d45a;p=plewww.git Minor modification to the code segment in common/actions.php , which checks the return value of AddPersonKey --- 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());