diff --git a/lib/private/Setup.php b/lib/private/Setup.php
index 2c7a2879088c3b200f1140bbf40c31ca53bc4691..4c72fbc962342d8452ea8a63b8f9a4ae009cfeaa 100644
--- a/lib/private/Setup.php
+++ b/lib/private/Setup.php
@@ -410,6 +410,7 @@ class Setup {
 
 	/**
 	 * Append the correct ErrorDocument path for Apache hosts
+	 * @return bool True when success, False otherwise
 	 */
 	public static function updateHtaccess() {
 		$config = \OC::$server->getConfig();
@@ -418,7 +419,7 @@ class Setup {
 		if(\OC::$CLI) {
 			$webRoot = $config->getSystemValue('overwrite.cli.url', '');
 			if($webRoot === '') {
-				return;
+				return false;
 			}
 			$webRoot = parse_url($webRoot, PHP_URL_PATH);
 			$webRoot = rtrim($webRoot, '/');