Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/fulltextsearch.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Command/Index.php')
-rw-r--r--lib/Command/Index.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Command/Index.php b/lib/Command/Index.php
index 6fa14d1..b92d2fa 100644
--- a/lib/Command/Index.php
+++ b/lib/Command/Index.php
@@ -611,9 +611,9 @@ class Index extends ACommandBase {
$width = $this->terminal->getWidth() - 13;
$message = MiscService::get('message', $error, '');
- $err1 = substr($message, 0, $width);
- $err2 = substr($message, $width, $width + 10);
- $err3 = substr($message, $width + $width + 10, $width + 10);
+ $err1 = (string) substr($message, 0, $width);
+ $err2 = (string) substr($message, $width, $width + 10);
+ $err3 = (string) substr($message, $width + $width + 10, $width + 10);
$this->runner->setInfoArray(
[