argc > 1) ? intval($a->argv[1]) : 0); if(! $item) { goaway(App::get_baseurl() . '/' . $_SESSION['photo_return']); // NOTREACHED } $r = q("SELECT * FROM `item` WHERE `id` = %d AND `uid` = %d LIMIT 1", intval($item), intval(local_user()) ); if(! dbm::is_result($r)) goaway(App::get_baseurl() . '/' . $_SESSION['photo_return']); $arr = explode(',', $r[0]['tag']); if(! count($arr)) goaway(App::get_baseurl() . '/' . $_SESSION['photo_return']); $o .= '
' . t('Select a tag to remove: ') . '
'; $o .= ''; return $o; }