diff options
author | Mario Vavti <mario@mariovavti.com> | 2015-07-16 22:04:52 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2015-07-16 22:04:52 +0200 |
commit | 39a09eb525df95a38c14bf3e6f9b8c74bda68314 (patch) | |
tree | d16304932237498daa504b525a64178db782f634 /include | |
parent | 5506f178a59f4be7659fefca2115b043ed6d4792 (diff) | |
download | volse-hubzilla-39a09eb525df95a38c14bf3e6f9b8c74bda68314.tar.gz volse-hubzilla-39a09eb525df95a38c14bf3e6f9b8c74bda68314.tar.bz2 volse-hubzilla-39a09eb525df95a38c14bf3e6f9b8c74bda68314.zip |
fix missing div and a regression introduced in ec23a94b6d7f6db1e1d34275b8143cbc947db802 which broke tag removal for photos
Diffstat (limited to 'include')
-rwxr-xr-x | include/items.php | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/items.php b/include/items.php index 73ed64116..054008d58 100755 --- a/include/items.php +++ b/include/items.php @@ -2657,11 +2657,12 @@ function item_store_update($arr,$allow_exec = false) { return $ret; } + $r = q("delete from term where oid = %d and otype = %d", + intval($orig_post_id), + intval(TERM_OBJ_POST) + ); + if(is_array($terms)) { - $r = q("delete from term where oid = %d and otype = %d", - intval($orig_post_id), - intval(TERM_OBJ_POST) - ); foreach($terms as $t) { q("insert into term (uid,oid,otype,type,term,url) values(%d,%d,%d,%d,'%s','%s') ", @@ -2673,7 +2674,6 @@ function item_store_update($arr,$allow_exec = false) { dbesc($t['url']) ); } - $arr['term'] = $terms; } |