'calendar') , false ); foreach ($calendars as $key => $calendar) { $signatureOwner = Controller::find(array('concept' => 'calendarSignature') , false , array('filter' => array('and', array( '=' , 'calendar' , $calendar['id'] ), array( '=' , 'isOwner' , '1' )))); $user = Controller::read(array('concept' => 'user' , 'id' => $signatureOwner[0]['user']) ); $locationArray = explode('/', $calendar['location']); if($locationArray[0] !== $user['uid']) Controller::update(array('concept' => 'calendar' , 'id' => $calendar['id']) , array( 'location' => $user['uid'].'/'.$calendar['location'] )); } ?>