remnant code that checked for version to see if an app was installed. We do that differently now.
This commit is contained in:
parent
cda284424f
commit
0d9e12737a
@ -448,9 +448,8 @@ class Apps {
|
|||||||
|
|
||||||
static public function app_installed($uid,$app) {
|
static public function app_installed($uid,$app) {
|
||||||
|
|
||||||
$r = q("select id from app where app_id = '%s' and app_version = '%s' and app_channel = %d limit 1",
|
$r = q("select id from app where app_id = '%s' and app_channel = %d limit 1",
|
||||||
dbesc((array_key_exists('guid',$app)) ? $app['guid'] : ''),
|
dbesc((array_key_exists('guid',$app)) ? $app['guid'] : ''),
|
||||||
dbesc((array_key_exists('version',$app)) ? $app['version'] : ''),
|
|
||||||
intval($uid)
|
intval($uid)
|
||||||
);
|
);
|
||||||
return(($r) ? true : false);
|
return(($r) ? true : false);
|
||||||
|
Reference in New Issue
Block a user