[Pkg-owncloud-commits] [owncloud] 04/118: Simplify code

David Prévot taffit at moszumanska.debian.org
Fri Mar 27 22:13:05 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch stable8
in repository owncloud.

commit 266a65510784ba1b497f27eb46ab31132dc8852e
Author: Lukas Reschke <lukas at owncloud.com>
Date:   Sun Mar 1 12:35:41 2015 +0100

    Simplify code
---
 lib/base.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/base.php b/lib/base.php
index 4182c38..8609743 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -555,13 +555,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 {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list