brute-force changed access to $_GET['key'] to use get_array instead
[plewww.git] / planetlab / sites / delete_site.php
index 6273815..88eb351 100644 (file)
@@ -11,7 +11,6 @@ global $plc, $api;
 
 // Common functions
 require_once 'plc_functions.php';
-require_once 'plc_sorts.php';
 
 // Print header
 require_once 'plc_drupal.php';
@@ -24,7 +23,7 @@ $_roles= $_person['role_ids'];
 
 
 // if no id redirect
-if( !$_GET['id'] ) 
+if( !get_array($_GET, 'id') ) 
   plc_redirect (l_sites());
 
 // set the site_id