aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-07-19 21:08:34 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-07-19 21:08:34 -0700
commit15b6e8faa489d6634d7a67c88572325237fbb749 (patch)
tree729e27ec0ccd424fcd252b17c2a9ade9c725eca3 /include/items.php
parentfd8e6f313088f124cdd80387e1a1c7887f0c7300 (diff)
parent736db4992b37e4e54d85e5734157e62c6500c431 (diff)
downloadvolse-hubzilla-15b6e8faa489d6634d7a67c88572325237fbb749.tar.gz
volse-hubzilla-15b6e8faa489d6634d7a67c88572325237fbb749.tar.bz2
volse-hubzilla-15b6e8faa489d6634d7a67c88572325237fbb749.zip
Merge branch 'master' of https://github.com/redmatrix/redmatrix
Conflicts: include/identity.php include/widgets.php util/messages.po view/it/messages.po view/it/strings.php
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/items.php b/include/items.php
index b1a0dacdf..d24dbed9f 100755
--- a/include/items.php
+++ b/include/items.php
@@ -2685,11 +2685,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') ",
@@ -2701,7 +2702,6 @@ function item_store_update($arr,$allow_exec = false) {
dbesc($t['url'])
);
}
-
$arr['term'] = $terms;
}