aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Setup.php
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-09-12 15:51:33 +0200
committerJoas Schilling <coding@schilljs.com>2016-09-13 10:51:48 +0200
commit1675542df4a1cfb203dfcbe2393b559577043803 (patch)
tree9744e7177478735dd7ff0ffa17e69f2a49df847a /lib/private/Setup.php
parent0543661064b00c27c2e9a1780acf34c8a364f6ce (diff)
downloadnextcloud-server-1675542df4a1cfb203dfcbe2393b559577043803.tar.gz
nextcloud-server-1675542df4a1cfb203dfcbe2393b559577043803.zip
Display an error when updating .htaccess failed
Diffstat (limited to 'lib/private/Setup.php')
-rw-r--r--lib/private/Setup.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/private/Setup.php b/lib/private/Setup.php
index 3b3a57c3e96..2c7a2879088 100644
--- a/lib/private/Setup.php
+++ b/lib/private/Setup.php
@@ -472,9 +472,10 @@ class Setup {
if ($content !== '') {
//suppress errors in case we don't have permissions for it
- @file_put_contents($setupHelper->pathToHtaccess(), $htaccessContent.$content . "\n");
+ return (bool) @file_put_contents($setupHelper->pathToHtaccess(), $htaccessContent.$content . "\n");
}
+ return false;
}
public static function protectDataDirectory() {