diff --git a/lib/base.php b/lib/base.php index 730cee5231d21a22462c4791902e397c7139d8db..939b23f87f9398d39f359fdde0928b0557cfeacf 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(); }