public static function onFlushTags(Slay_Song $song) { $sid = $song->getID(); if (!GWF_User::isInGroupS(GWF_Group::STAFF)) { return GWF_HTML::err('ERR_NO_PERMISSION'); } if (false === GDO::table('Slay_SongTag')->deleteWhere("sst_sid={$sid}")) { return GWF_HTML::err('ERR_DATABASE', array(__FILE__, __LINE__)); } if (false === GDO::table('Slay_TagVote')->deleteWhere("stv_sid={$sid}")) { return GWF_HTML::err('ERR_DATABASE', array(__FILE__, __LINE__)); } if (false === $song->saveVars(array('ss_taggers' => '0', 'ss_tag_cache' => NULL))) { return GWF_HTML::err('ERR_DATABASE', array(__FILE__, __LINE__)); } return false; }