summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authormarc0s <marcos@tenak.net>2014-07-30 23:21:40 +0200
committerMarcos de Vera Piquero <marcos.devera@quobis.com>2014-07-30 23:24:55 +0200
commitf2e20757f6198bc49e139c62acdb965a11767093 (patch)
treeb9a60bc903ba77156953d9b660caf981252109df /lib/base.php
parentfd1bb688f9ad84bd04d38323a0f78aab79a2a59f (diff)
downloadnextcloud-server-f2e20757f6198bc49e139c62acdb965a11767093.tar.gz
nextcloud-server-f2e20757f6198bc49e139c62acdb965a11767093.zip
Fix checking of NULL or empty OC::$THIRDPARTYROOT/OC::$THIRDPARTYWEBROOT
Fixes #10065
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/base.php b/lib/base.php
index a6f6f6f71d7..cba5d4a4276 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -135,7 +135,7 @@ class OC {
OC::$THIRDPARTYROOT = OC_Config::getValue('3rdpartyroot', null);
OC::$THIRDPARTYWEBROOT = OC_Config::getValue('3rdpartyurl', null);
- if (is_null(OC::$THIRDPARTYROOT) && is_null(OC::$THIRDPARTYWEBROOT)) {
+ if (empty(OC::$THIRDPARTYROOT) && empty(OC::$THIRDPARTYWEBROOT)) {
if (file_exists(OC::$SERVERROOT . '/3rdparty')) {
OC::$THIRDPARTYROOT = OC::$SERVERROOT;
OC::$THIRDPARTYWEBROOT = OC::$WEBROOT;
@@ -144,7 +144,7 @@ class OC {
OC::$THIRDPARTYROOT = rtrim(dirname(OC::$SERVERROOT), '/');
}
}
- if (is_null(OC::$THIRDPARTYROOT) || !file_exists(OC::$THIRDPARTYROOT)) {
+ if (empty(OC::$THIRDPARTYROOT) || !file_exists(OC::$THIRDPARTYROOT)) {
echo('3rdparty directory not found! Please put the ownCloud 3rdparty'
. ' folder in the ownCloud folder or the folder above.'
. ' You can also configure the location in the config.php file.');