don't silently exit in cli-mode in case ownCloud in not yet installed

fixes https://github.com/owncloud/core/issues/9629
Branch hijack permission granted


Von Samsung Mobile gesendet

-------- Ursprüngliche Nachricht --------
Von: Jörn Friedrich Dreyer <notifications@github.com> 
Datum:25.07.2014  11:57  (GMT+01:00) 
An: owncloud/core <core@noreply.github.com> 
Cc: Thomas Müller <thomas.mueller@tmit.eu> 
Betreff: Re: [core] don't silently exit in cli-mode in case ownCloud in not  yet installed (#9843) 

In lib/base.php:

> @@ -214,6 +214,8 @@ public static function checkInstalled() {
>  			if (!OC::$CLI) {
>  				$url = 'http://' . $_SERVER['SERVER_NAME'] . OC::$WEBROOT . '/index.php';
>  				header("Location: $url");
> +			} else {
now that we have an else block, can we invert the if condition, swap the blocks and get rid of the negation?

—
Reply to this email directly or view it on GitHub.