don't sync system apps
This commit is contained in:
parent
e25d205a7f
commit
a0f28708ab
@ -527,7 +527,7 @@ class Apps {
|
|||||||
intval($uid)
|
intval($uid)
|
||||||
);
|
);
|
||||||
if($r) {
|
if($r) {
|
||||||
if(! $r[0]['app_system']) {
|
if(($app['uid']) && (! $r[0]['app_system'])) {
|
||||||
if($app['categories'] && (! $app['term'])) {
|
if($app['categories'] && (! $app['term'])) {
|
||||||
$r[0]['term'] = q("select * from term where otype = %d and oid = %d",
|
$r[0]['term'] = q("select * from term where otype = %d and oid = %d",
|
||||||
intval(TERM_OBJ_APP),
|
intval(TERM_OBJ_APP),
|
||||||
@ -587,8 +587,9 @@ class Apps {
|
|||||||
intval($uid)
|
intval($uid)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if(! intval($x[0]['app_system'])) {
|
||||||
build_sync_packet($uid,array('app' => $x));
|
build_sync_packet($uid,array('app' => $x));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
self::app_undestroy($uid,$app);
|
self::app_undestroy($uid,$app);
|
||||||
|
Reference in New Issue
Block a user