From 2594fb80aa7cff2de60c71f2daf9b42b5e2fed83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= <thomas.mueller@tmit.eu> Date: Thu, 24 Jul 2014 13:45:06 +0200 Subject: [PATCH] don't silently exit in cli-mode in case ownCloud in not yet installed --- lib/base.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/base.php b/lib/base.php index 730cee5231..939b23f87f 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(); } -- GitLab