some preliminary structural work for app organisation

This commit is contained in:
redmatrix
2016-05-03 18:41:16 -07:00
parent dccdeedb75
commit 3df0bb5522
6 changed files with 37 additions and 7 deletions

View File

@@ -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) {