From 4f1e4ffa70f5a822367eafec914ff8853561210d Mon Sep 17 00:00:00 2001 From: zotlabs Date: Fri, 13 Jan 2017 13:22:36 -0800 Subject: several minor app nits --- Zotlabs/Lib/Apps.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Zotlabs/Lib') 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); -- cgit v1.2.3