diff options
author | Simon | 2011-04-18 12:42:30 +0200 |
---|---|---|
committer | Simon | 2011-04-18 12:42:30 +0200 |
commit | 281a9a40960403b4483af33eec5cebab10e32684 (patch) | |
tree | f9a3f7602315e7d1c55f664d161186a911ce2952 /library | |
parent | Pbs_Graph bei Minuswerten wird nichts eingefärbt (diff) | |
download | pbs2-281a9a40960403b4483af33eec5cebab10e32684.tar.gz pbs2-281a9a40960403b4483af33eec5cebab10e32684.tar.xz pbs2-281a9a40960403b4483af33eec5cebab10e32684.zip |
Role Controller geändert
Diffstat (limited to 'library')
-rw-r--r-- | library/Pbs/NewMember.php | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/library/Pbs/NewMember.php b/library/Pbs/NewMember.php index 62069c2..2865ef9 100644 --- a/library/Pbs/NewMember.php +++ b/library/Pbs/NewMember.php @@ -28,13 +28,14 @@ class Pbs_NewMember{ $userBootmenu->setID($userBootmenuID); # print_a('userbootmenu',$userBootmenu); - - $bootmenuentries = $bootmenuentriesMapper->findBy(array('bootmenuID'=>$defaultBootmenu->getID())); - foreach($bootmenuentries as $bme){ - $bme->setID(null); - $bme->setBootmenuID($userBootmenuID); - $bootmenuentriesMapper->save($bme); - #print_a('bootmenuentry',$bme); + if($defaultBootmenu->getID() != ''){ + $bootmenuentries = $bootmenuentriesMapper->findBy(array('bootmenuID'=>$defaultBootmenu->getID())); + foreach($bootmenuentries as $bme){ + $bme->setID(null); + $bme->setBootmenuID($userBootmenuID); + $bootmenuentriesMapper->save($bme); + #print_a('bootmenuentry',$bme); + } } // Second we create a filter |