Commit 5967a153 authored by Mario's avatar Mario
Browse files

remove terms if we have not provided any

parent f348e2ff
......@@ -67,6 +67,13 @@ class Attach_edit extends Controller {
}
}
}
else {
q("DELETE FROM term WHERE uid = %d AND oid = %d AND otype = %d",
intval($channel['channel_id']),
intval($attach_id),
intval(TERM_OBJ_FILE)
);
}
$sync = attach_export_data($channel, $resource, false);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment