diff options
author | Lukas Reschke <lukas@owncloud.com> | 2015-03-01 12:35:41 +0100 |
---|---|---|
committer | Lukas Reschke <lukas@owncloud.com> | 2015-03-01 12:35:41 +0100 |
commit | afb0d742b9137b2ab0db7a3c90f8baafbfb26ca6 (patch) | |
tree | 600c3e2fb5dc00ed9ff0a1cd4178515c83fe7702 /lib/base.php | |
parent | b6d8a48ce1cefdd11db90d7a4b359f22b2906962 (diff) | |
download | nextcloud-server-afb0d742b9137b2ab0db7a3c90f8baafbfb26ca6.tar.gz nextcloud-server-afb0d742b9137b2ab0db7a3c90f8baafbfb26ca6.zip |
Simplify code
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/base.php b/lib/base.php index fb93b331d12..1f2e90deefd 100644 --- a/lib/base.php +++ b/lib/base.php @@ -577,13 +577,13 @@ class OC { if (self::$CLI) { // Convert l10n string into regular string for usage in database $staticErrors = []; - $i = 0; foreach ($errors as $error) { echo $error['error'] . "\n"; echo $error['hint'] . "\n\n"; - $staticErrors[$i]['error'] = (string) $error['error']; - $staticErrors[$i]['hint'] = (string) $error['hint']; - $i++; + $staticErrors[] = [ + 'error' => (string) $error['error'], + 'hint' => (string) $error['hint'], + ]; } try { |