summaryrefslogtreecommitdiffstats
path: root/library
diff options
context:
space:
mode:
authorSimon2011-04-18 12:42:30 +0200
committerSimon2011-04-18 12:42:30 +0200
commit281a9a40960403b4483af33eec5cebab10e32684 (patch)
treef9a3f7602315e7d1c55f664d161186a911ce2952 /library
parentPbs_Graph bei Minuswerten wird nichts eingefärbt (diff)
downloadpbs2-281a9a40960403b4483af33eec5cebab10e32684.tar.gz
pbs2-281a9a40960403b4483af33eec5cebab10e32684.tar.xz
pbs2-281a9a40960403b4483af33eec5cebab10e32684.zip
Role Controller geändert
Diffstat (limited to 'library')
-rw-r--r--library/Pbs/NewMember.php15
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