git://git.onelab.eu
/
plewww.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
redirects
[plewww.git]
/
planetlab
/
sites
/
switch_site.php
diff --git
a/planetlab/sites/switch_site.php
b/planetlab/sites/switch_site.php
index
5e5975d
..
87b8d9a
100644
(file)
--- a/
planetlab/sites/switch_site.php
+++ b/
planetlab/sites/switch_site.php
@@
-18,10
+18,8
@@
$_roles= $_person['role_ids'];
// if no site id redirect
-if( !$_GET['id'] ) {
- header( "location: index.php" );
- exit();
- }
+if( !$_GET['id'] )
+ plc_redirect(l_sites());
// get site_id
$site_id= $_GET['id'];