summaryrefslogtreecommitdiffstats
path: root/lib/private/app.php
diff options
context:
space:
mode:
authorGeorg Ehrke <developer@georgehrke.com>2014-06-06 09:41:33 +0200
committerGeorg Ehrke <developer@georgehrke.com>2014-06-06 09:41:53 +0200
commita110973b3a7d10c630e901e5ee7fb77b7a1e0f28 (patch)
tree59003b6fb1a651804aba3271c30037d1375257c7 /lib/private/app.php
parent498aa6664807cca87a1ca8d2fd0d3d609430bae8 (diff)
downloadnextcloud-server-a110973b3a7d10c630e901e5ee7fb77b7a1e0f28.tar.gz
nextcloud-server-a110973b3a7d10c630e901e5ee7fb77b7a1e0f28.zip
some additional type checks
Diffstat (limited to 'lib/private/app.php')
-rw-r--r--lib/private/app.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/app.php b/lib/private/app.php
index 0292abb6310..3c7b17c148b 100644
--- a/lib/private/app.php
+++ b/lib/private/app.php
@@ -521,7 +521,7 @@ class OC_App {
*/
public static function isAppDirWritable($appid) {
$path = self::getAppPath($appid);
- return is_writable($path);
+ return ($path !== false) ? is_writable($path) : false;
}
/**
@@ -544,7 +544,7 @@ class OC_App {
*/
public static function getAppVersion($appid) {
$file = self::getAppPath($appid);
- return self::getAppVersionByPath($file);
+ return ($file !== false) ? self::getAppVersionByPath($file) : '0';
}
/**