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

github.com/nextcloud/documentserver_community.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2020-01-30 19:28:35 +0300
committerRobin Appelman <robin@icewind.nl>2020-01-30 19:28:35 +0300
commitdca9ed5533b5fbff2038cf254c7b594dadb24312 (patch)
treea98d2699a20d39c423d7e38d10e654ff22955dd5
parent95dd34b0bc0555699e6f7ca0d012d565ac8dc84a (diff)
ensure message is string
-rw-r--r--lib/Document/ConverterBinary.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Document/ConverterBinary.php b/lib/Document/ConverterBinary.php
index c57d2c6..9da33b6 100644
--- a/lib/Document/ConverterBinary.php
+++ b/lib/Document/ConverterBinary.php
@@ -72,7 +72,7 @@ class ConverterBinary {
$output = $this->run('');
return strpos($output, 'OOX/binary file converter') !== false;
} catch (\Exception $e) {
- if (trim($e->getMessage()) === 'Empty sFileFrom or sFileTo') {
+ if (trim((string)$e->getMessage()) === 'Empty sFileFrom or sFileTo') {
return true;
}
$this->logger->logException($e, [