function add($postArray)
 {
     if (User::isAdmin()) {
         $bm = BandMember::get($postArray['member_id']);
     } else {
         $uo = User::getCurrent();
         $bm = BandMember::getByUserID($uo->getID());
     }
     if (db::isError($bm)) {
         return $bm;
     }
     $db = new db();
     $member_id = $bm->getID();
     $title = $db->sanitize_to_db($postArray['title']);
     $_dt = strtotime($postArray['date']);
     $dt = date('Y-m-d', $_dt) . ' ' . $postArray['time'];
     $dateTime = date("Y-m-d H:i:s", strtotime($dt));
     $body = $db->sanitize_to_db($postArray['body']);
     if (!$title) {
         $title = '(untitled)';
     }
     $r = @mysql_query("insert into Band_Diaries (title, member_id, date_time, body, is_active) values ('{$title}','{$member_id}','{$dateTime}','{$body}'," . DEFAULT_ACTIVE . ")");
     if (!$r) {
         return Error::MySQL();
     } else {
         $bd = BandMemberDiary::get(mysql_insert_id());
         return $bd;
     }
 }
     $venueName = $venue->getName();
     $venueAddress1 = $venue->getAddress1();
     $venueAddress2 = $venue->getAddress2();
     $venueCity = $venue->getCity();
     $venueStateProvince = $venue->getStateProvince();
     $venuePostalCode = $venue->getPostalCode();
     $venueCountry = $venue->getCountry();
 }
 $name = USE_MOD_REWRITE ? '<a href="' . SITE_WEB_DIRECTORY . '/show/' . $ID . '">' . $so->getName() . '</a>' : '<a href="' . SITE_WEB_DIRECTORY . '/shows.php?id=' . $ID . '">' . $so->getName() . '</a>';
 $access = $so->isAllAges() ? "All Ages!" : "21 and Over";
 $uo = $so->getUserObject();
 $cost = $so->getCost();
 $date = $so->getDate("F d, Y");
 $time = $so->getTime("g:i A");
 if ($uo->isBandMember()) {
     $bm = BandMember::getByUserID($uo->getID());
     if ($bm->isActive()) {
         if (USE_MOD_REWRITE) {
             $poster = '<a href="' . SITE_WEB_DIRECTORY . '/member/' . $ID . '/">Read More</a>';
         } else {
             $poster = '<a href="' . SITE_WEB_DIRECTORY . '/member.php?id=' . $bm->getID() . '">Read More</a>';
         }
     } else {
         $poster = $firstname;
     }
 } else {
     $poster = $firstname;
 }
 $moreLink = '';
 if (!$args['suppressLink']) {
     if (USE_MOD_REWRITE) {