diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-07-24 13:45:06 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-07-24 13:45:06 +0200 |
commit | 2594fb80aa7cff2de60c71f2daf9b42b5e2fed83 (patch) | |
tree | ab001eabac27b5be8a3e33d0dd04b382aad597ac /lib/base.php | |
parent | e2327f83ed60ca29fd1513a40bcefd26e52c54bf (diff) | |
download | nextcloud-server-2594fb80aa7cff2de60c71f2daf9b42b5e2fed83.tar.gz nextcloud-server-2594fb80aa7cff2de60c71f2daf9b42b5e2fed83.zip |
don't silently exit in cli-mode in case ownCloud in not yet installed
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php index 730cee5231d..939b23f87f9 100644 --- a/lib/base.php +++ b/lib/base.php @@ -214,6 +214,8 @@ class OC { if (!OC::$CLI) { $url = 'http://' . $_SERVER['SERVER_NAME'] . OC::$WEBROOT . '/index.php'; header("Location: $url"); + } else { + throw new Exception("Not installed"); } exit(); } |