aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Apps.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2017-02-06 14:37:33 +0100
committerMario Vavti <mario@mariovavti.com>2017-02-06 14:37:33 +0100
commit59baf34170d38f5aa9303d9001c9c0d23a0604ea (patch)
treeb1bf0d06aa15c57ead63ea60f505e78e13ba6eaa /Zotlabs/Lib/Apps.php
parent5aa1146fe9dd2930c95ecc67322142773b3620ff (diff)
downloadvolse-hubzilla-59baf34170d38f5aa9303d9001c9c0d23a0604ea.tar.gz
volse-hubzilla-59baf34170d38f5aa9303d9001c9c0d23a0604ea.tar.bz2
volse-hubzilla-59baf34170d38f5aa9303d9001c9c0d23a0604ea.zip
make sure we do not remove other categories on app un-feature
Diffstat (limited to 'Zotlabs/Lib/Apps.php')
-rw-r--r--Zotlabs/Lib/Apps.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Lib/Apps.php b/Zotlabs/Lib/Apps.php
index 455287fb8..7c07f2974 100644
--- a/Zotlabs/Lib/Apps.php
+++ b/Zotlabs/Lib/Apps.php
@@ -450,13 +450,13 @@ class Apps {
intval($uid)
);
- $x = q("select * from term where otype = %d and oid = %d limit 1",
+ $x = q("select * from term where otype = %d and oid = %d and term = 'nav_featured_app' limit 1",
intval(TERM_OBJ_APP),
intval($r[0]['id'])
);
if($x) {
- q("delete from term where otype = %d and oid = %d",
+ q("delete from term where otype = %d and oid = %d and term = 'nav_featured_app'",
intval(TERM_OBJ_APP),
intval($x[0]['oid'])
);