From: Thomas Müller Date: Thu, 16 Apr 2015 10:32:17 +0000 (+0200) Subject: Convert error and hint to string before writing to the output - fixes https://mailman... X-Git-Tag: v8.1.0alpha2~61^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=07243f048216b313989d0c794c092eda5d1d8575;p=nextcloud-server.git Convert error and hint to string before writing to the output - fixes https://mailman.owncloud.org/pipermail/devel/2015-April/001184.html --- diff --git a/lib/private/console/application.php b/lib/private/console/application.php index 551d69ef53c..6d24665e012 100644 --- a/lib/private/console/application.php +++ b/lib/private/console/application.php @@ -52,8 +52,8 @@ class Application { $errors = \OC_Util::checkServer(\OC::$server->getConfig()); if (!empty($errors)) { foreach ($errors as $error) { - $output->writeln($error['error']); - $output->writeln($error['hint']); + $output->writeln((string)$error['error']); + $output->writeln((string)$error['hint']); $output->writeln(''); } throw new \Exception("Environment not properly prepared.");