Skip to content

Commit

Permalink
fix: return empty response when filename isn't provided
Browse files Browse the repository at this point in the history
  • Loading branch information
Matiasnickolas committed Jan 12, 2024
1 parent 5ee085f commit bf5ac60
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugin/shared/Helpers/PluginLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ public function getInfo()

public function getLogDetail($filename, $replaceNewline = false)
{
if ($filename == '') {
return [];
}
$fle = $this->config->getLogDir().'/'.$filename;
$content = file_get_contents($fle);
if ($replaceNewline && $content !== false) {
Expand Down

0 comments on commit bf5ac60

Please sign in to comment.