// Invalid slice name
if( !isset( $slice ) ) {
- Header( "Location: index.php" );
- exit();
+ plc_redirect( l_slices());
}
// Defaults
// Update the slice URL and description
$fields= array( "description"=>$slice['description'], "url"=>$slice['url'] );
$api->UpdateSlice( intval( $slice_id ), $fields );
- Header( "Location: index.php?id=$slice_id" );
- exit();
+ plc_redirect(l_slice($slice_id));
}
}
// Print footer
include 'plc_footer.php';
-?>
\ No newline at end of file
+?>