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
path: root/lib
diff options
context:
space:
mode:
authorMaxence Lange <maxence@artificial-owl.com>2018-10-31 13:20:38 +0300
committerMaxence Lange <maxence@artificial-owl.com>2018-10-31 13:20:38 +0300
commit8c675cf9af177965204dc70403f881457b619a8a (patch)
treecaa2e3b03a2934e363ff711a4e932839ff344d3a /lib
parent759ad720b82f0d8e09ae819a69fce7af2597db25 (diff)
some fixes
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/Command/Index.php6
-rw-r--r--lib/Command/Live.php12
2 files changed, 9 insertions, 9 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(
[
diff --git a/lib/Command/Live.php b/lib/Command/Live.php
index 0f3ffbc..0e213de 100644
--- a/lib/Command/Live.php
+++ b/lib/Command/Live.php
@@ -531,9 +531,9 @@ class Live extends ACommandBase {
$width = $this->terminal->getWidth() - 13;
$message = MiscService::get('message', $result, '');
- $msg1 = substr($message, 0, $width);
- $msg2 = substr($message, $width, $width + 10);
- $msg3 = substr($message, $width + $width + 10, $width + 10);
+ $msg1 = (string) substr($message, 0, $width);
+ $msg2 = (string) substr($message, $width, $width + 10);
+ $msg3 = (string) substr($message, $width + $width + 10, $width + 10);
$status = MiscService::get('status', $result, '');
@@ -587,9 +587,9 @@ class Live 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(
[