aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-07-16 20:21:20 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-07-16 20:21:20 -0700
commitfd16de335cae437cba246b88227bba29d8161620 (patch)
treec9a9425f807130d9dc016e231065ad8def1a3876 /include
parentec249d465b60407b2e7c64e7a99be8ccf4b95e64 (diff)
parent39a09eb525df95a38c14bf3e6f9b8c74bda68314 (diff)
downloadvolse-hubzilla-fd16de335cae437cba246b88227bba29d8161620.tar.gz
volse-hubzilla-fd16de335cae437cba246b88227bba29d8161620.tar.bz2
volse-hubzilla-fd16de335cae437cba246b88227bba29d8161620.zip
Merge https://github.com/redmatrix/redmatrix into pending_merge
Diffstat (limited to 'include')
-rwxr-xr-xinclude/items.php10
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;
}