Beispiel #1
0
         $USER->setProfilDataText($id, substr(trim($profilDataText), 0, 40));
         if (strlen(trim($profilDataText))) {
             $USER->setProfilDataVal($id, false);
         }
     }
 }
 $notifications = array();
 if (isset($_POST['notifications'])) {
     foreach ($_POST['notifications'] as $notification_id => $value) {
         if ($value === 'on') {
             $notifications[] = $notification_id;
         }
     }
 }
 $data = Paminnelse_sql::getAktivaIDn($USER);
 Paminnelse_sql::uppdateraAktiva($USER, $notifications);
 if ($USER->getForetagsnyckel(true) == "" && !empty($_POST["foretagsnyckel"])) {
     $USER->setForetagsnyckel($_POST["foretagsnyckel"]);
     $USER->commit();
     if ($USER->getLag() == null) {
         $urlHandler->redirect("Foretag", URL_VIEW, $USER->getForetag(true)->getId());
     } else {
         $urlHandler->redirect("Lag", URL_VIEW, $USER->getLag()->getId());
     }
 }
 if (isset($_POST["tab"])) {
     $urlHandler->redirect("Medlem", URL_EDIT, $_POST["tab"]);
 } else {
     $urlHandler->redirect("Medlem", URL_EDIT);
 }
 break;