// Update or insert?
if($ob->getUid() == null) {
// No UID yet, insert new booking
+ // @todo write interval and user if interval > 0
$strLog = sprintf("Raum „%s“ am %s von %s bis %s gebucht ".
"(Begründung: %s)", $ob->getRoom(), date("d\.m\.Y", $ob->getDate()),
gmdate("G:i", $oTsB[$ob->getTsFirst()]), gmdate("G:i",
$hQuery = db_query("SELECT currval('mod_roomreservation_bookings_rrb_uid_seq');");
$nNewUid = pg_fetch_result($hQuery, 0, "currval");
- ##############
- #FIXME remove this
- echo "inserted new UID: $nNewUid<br />";
- #####
rrInsertLog($strLog);