示例#1
0
function fof_delete_subscription($user_id, $feed_id)
{
    fof_db_delete_subscription($user_id, $feed_id);
    if (mysql_num_rows(fof_get_subscribed_users($feed_id)) == 0) {
        fof_db_delete_feed($feed_id);
    }
}
示例#2
0
function fof_delete_subscription($user_id, $feed_id)
{
    fof_db_delete_subscription($user_id, $feed_id);
    if (fof_db_get_subscribed_users_count($feed_id) == 0) {
        fof_db_delete_feed($feed_id);
    }
}