aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib/Apps.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-01-13 13:22:36 -0800
committerzotlabs <mike@macgirvin.com>2017-01-13 13:22:36 -0800
commit4f1e4ffa70f5a822367eafec914ff8853561210d (patch)
treee9fb8dc76938729944071e4d1e6fb8dbdff10049 /Zotlabs/Lib/Apps.php
parent7249eebc7528b2c60c1f83724966cc4a1192cbb0 (diff)
downloadvolse-hubzilla-4f1e4ffa70f5a822367eafec914ff8853561210d.tar.gz
volse-hubzilla-4f1e4ffa70f5a822367eafec914ff8853561210d.tar.bz2
volse-hubzilla-4f1e4ffa70f5a822367eafec914ff8853561210d.zip
several minor app nits
Diffstat (limited to 'Zotlabs/Lib/Apps.php')
-rw-r--r--Zotlabs/Lib/Apps.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/Zotlabs/Lib/Apps.php b/Zotlabs/Lib/Apps.php
index 46486bb5a..358ae409b 100644
--- a/Zotlabs/Lib/Apps.php
+++ b/Zotlabs/Lib/Apps.php
@@ -100,15 +100,15 @@ class Apps {
}
$notfound = true;
foreach(self::$installed_system_apps as $iapp) {
- if($app['plugin'] && (! $iapp['app_plugin']))
- return(1);
if($iapp['app_id'] == hash('whirlpool',$app['name'])) {
$notfound = false;
- if($iapp['app_version'] != $app['version']) {
+ if(($iapp['app_version'] != $app['version'])
+ || ($app['plugin'] && (! $iapp['app_plugin']))) {
return intval($iapp['app_id']);
}
}
}
+
return $notfound;
}
@@ -503,7 +503,7 @@ class Apps {
static public function app_store($arr) {
- // logger('app_store: ' . print_r($arr,true));
+ //logger('app_store: ' . print_r($arr,true));
$darray = array();
$ret = array('success' => false);
@@ -583,6 +583,7 @@ class Apps {
static public function app_update($arr) {
+ //logger('app_update: ' . print_r($arr,true));
$darray = array();
$ret = array('success' => false);