aboutsummaryrefslogtreecommitdiffstats
path: root/include
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
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')
-rw-r--r--include/identity.php1
-rwxr-xr-xinclude/items.php10
-rw-r--r--include/widgets.php1
3 files changed, 6 insertions, 6 deletions
diff --git a/include/identity.php b/include/identity.php
index 5ca626c72..b0d62fba7 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -630,7 +630,6 @@ function identity_export_year($channel_id,$year) {
}
-
/**
* @brief Loads a profile into the App structure.
*
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;
}
diff --git a/include/widgets.php b/include/widgets.php
index 6c1df3022..36671e719 100644
--- a/include/widgets.php
+++ b/include/widgets.php
@@ -380,6 +380,7 @@ function widget_categories($arr) {
$srchurl = str_replace(array('?f=','&f='),array('',''),$srchurl);
return categories_widget($srchurl, $cat);
+
}
function widget_tagcloud_wall($arr) {