Simplify code

This commit is contained in:
Lukas Reschke 2015-03-01 12:35:41 +01:00
parent b6d8a48ce1
commit afb0d742b9
1 changed files with 4 additions and 4 deletions

View File

@ -577,13 +577,13 @@ class OC {
if (self::$CLI) { if (self::$CLI) {
// Convert l10n string into regular string for usage in database // Convert l10n string into regular string for usage in database
$staticErrors = []; $staticErrors = [];
$i = 0;
foreach ($errors as $error) { foreach ($errors as $error) {
echo $error['error'] . "\n"; echo $error['error'] . "\n";
echo $error['hint'] . "\n\n"; echo $error['hint'] . "\n\n";
$staticErrors[$i]['error'] = (string) $error['error']; $staticErrors[] = [
$staticErrors[$i]['hint'] = (string) $error['hint']; 'error' => (string) $error['error'],
$i++; 'hint' => (string) $error['hint'],
];
} }
try { try {