index 3505c39f853e42f11bd6c69b0f197b554e153c3b..4437598370f824dc89d5c1c064c521e8986c286f 100644 (file)
/* Post handling for Section, Release and Mirror Setup */
if(isset($_POST['SetRepository'])){
- if((isset($_POST['FAIdebianReleaseS']))&&(!empty($_POST['FAIdebianReleaseS']))){
- $this->FAIdebianRelease = $_POST['FAIdebianReleaseS'];
- }
- if((isset($_POST['FAIdebianMirrorS']))&&(!empty($_POST['FAIdebianMirrorS']))){
- $this->FAIdebianMirror = $_POST['FAIdebianMirrorS'];
- }
-
foreach($this->sections as $sec => $val){
if(isset($_POST[$sec])){
$this->sections[$sec]=true;
/* Save data to object */
function save_object()
{
+ if(isset($_POST['SetRepository'])){
+ /* Post handling for Section, Release and Mirror Setup */
+ if((isset($_POST['FAIdebianReleaseS']))&&(!empty($_POST['FAIdebianReleaseS']))){
+ $this->FAIdebianRelease = $_POST['FAIdebianReleaseS'];
+ }
+ if((isset($_POST['FAIdebianMirrorS']))&&(!empty($_POST['FAIdebianMirrorS']))){
+ $this->FAIdebianMirror = $_POST['FAIdebianMirrorS'];
+ }
+ }
}
/* Check supplied data */