diff options
Diffstat (limited to 'include/apps.php')
-rw-r--r-- | include/apps.php | 9 |
1 files changed, 7 insertions, 2 deletions
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) { |