From 0b86b6069761798d58cf827d8de6e4df2d9aebab Mon Sep 17 00:00:00 2001 From: "tristan.champomier" Date: Thu, 23 Sep 2021 03:15:30 +0200 Subject: [PATCH] Fixed errors --- lib/system/system_data_source/file/file.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/system/system_data_source/file/file.php b/lib/system/system_data_source/file/file.php index 4539bb1..da894c6 100755 --- a/lib/system/system_data_source/file/file.php +++ b/lib/system/system_data_source/file/file.php @@ -121,7 +121,12 @@ class File */ function readAll() { - return implode ('', $this->content); + if( is_array($this-content) + return implode ('', $this->content); + else if( is_string($this->content) + return $this->content; + else + return $this->content; } /**