<?php require_once('includes/requirecompere.inc.php'); $mb_id_leader=current_mb_id(); $mb_id_member=TGET('member_id'); $timezone_bias_seconds=get_user_time_zone()*60; $DBConn->connect(true); $member=db_load_compere($DBConn,$mb_id_member); $lectures=db_load_lectures_of_team_member($DBConn,$mb_id_leader,$mb_id_member); $dependedlectures=array(); foreach ($lectures as $lec) { $lec+=array_key_prepend(split_datetime($lec['lctr_since'],-$timezone_bias_seconds),'since_'); $lec+=array_key_prepend(split_datetime($lec['lctr_expire'],-$timezone_bias_seconds),'expire_'); if ($lec['staffcount']==1) array_push($dependedlectures,$lec); } $dataset+=$member; $dataset['LECTURE']=$dependedlectures; $dataset['NONDELETABLE-RESERVED']=$dependedlectures?array(0):array(); $dataset['DELETABLE']=$dependedlectures?array():array(0); ?>