diff options
author | Robin Appelman <robin@icewind.nl> | 2020-01-30 19:28:35 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2020-01-30 19:28:35 +0300 |
commit | dca9ed5533b5fbff2038cf254c7b594dadb24312 (patch) | |
tree | a98d2699a20d39c423d7e38d10e654ff22955dd5 | |
parent | 95dd34b0bc0555699e6f7ca0d012d565ac8dc84a (diff) |
ensure message is string
-rw-r--r-- | lib/Document/ConverterBinary.php | 2 |
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, [ |