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

github.com/nextcloud/logreader.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2019-06-13 18:22:11 +0300
committerRobin Appelman <robin@icewind.nl>2019-06-13 18:27:56 +0300
commit04d108e96ef9ab24ec8ee1014ddd2c446e5f622f (patch)
tree31487146f9614c966b765f882c39c5a2280c9121 /lib
parent29e89edf822e0baef816e6461de33d4a677aabd5 (diff)
a bit more robust
Diffstat (limited to 'lib')
-rw-r--r--lib/Log/Formatter.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Log/Formatter.php b/lib/Log/Formatter.php
index e77c343..e2add8e 100644
--- a/lib/Log/Formatter.php
+++ b/lib/Log/Formatter.php
@@ -59,7 +59,7 @@ class Formatter {
$argumentsString = implode(', ', $arguments);
$argumentWhiteSpace = str_repeat(' ', $largestIndexWidth + 2);
- if (strlen($argumentsString) < $argumentWidth) {
+ if ($argumentsString && strlen($argumentsString) < $argumentWidth) {
return $whiteSpace . $index . '. ' . $this->getFileAndLine($trace, $argumentWidth) . "\n" .
$argumentWhiteSpace . $method . '(' .
$argumentsString . ')';