From 3df0bb55221317a17d6e898415ba5d33ede7715d Mon Sep 17 00:00:00 2001 From: redmatrix Date: Tue, 3 May 2016 18:41:16 -0700 Subject: some preliminary structural work for app organisation --- include/apps.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'include/apps.php') diff --git a/include/apps.php b/include/apps.php index fac58b850..dca49a3c6 100644 --- a/include/apps.php +++ b/include/apps.php @@ -316,8 +316,13 @@ function app_installed($uid,$app) { } -function app_list($uid) { - $r = q("select * from app where app_channel = %d order by app_name asc", +function app_list($uid, $deleted = false) { + if($deleted) + $sql_extra = " and app_deleted = 1 "; + else + $sql_extra = " and app_deleted = 0 "; + + $r = q("select * from app where app_channel = %d $sql_extra order by app_name asc", intval($uid) ); if($r) { -- cgit v1.2.3