From b6c67c4c63206e19975655f0326bc320faa30f9a Mon Sep 17 00:00:00 2001 From: Bart Visscher Date: Fri, 25 Oct 2013 15:33:45 +0200 Subject: [PATCH 1/2] 'Update to' is shown when there is no update See #4716 --- lib/private/installer.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/private/installer.php b/lib/private/installer.php index e082c7eeee..5b6a8c9b99 100644 --- a/lib/private/installer.php +++ b/lib/private/installer.php @@ -275,11 +275,11 @@ class OC_Installer{ return($ocsversion); }else{ - return(''); + return false; } }else{ - return(''); + return false; } } From 78971c61e6baddad1a5e4257b955324e8defef78 Mon Sep 17 00:00:00 2001 From: Morris Jobke Date: Mon, 28 Oct 2013 11:27:51 +0100 Subject: [PATCH 2/2] update documentation for app update --- lib/private/installer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/private/installer.php b/lib/private/installer.php index 5b6a8c9b99..a7ca726971 100644 --- a/lib/private/installer.php +++ b/lib/private/installer.php @@ -259,7 +259,7 @@ class OC_Installer{ /** * @brief Check if an update for the app is available * @param $name name of the application - * @returns empty string is no update available or the version number of the update + * @return boolean false or the version number of the update * * The function will check if an update for a version is available */