From 0d863868d69d9e2c9ae3f6f0b22b4d3a1be73ee2 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Sat, 17 Aug 2019 00:02:21 +0200 Subject: Feature : list is going to work soon --- app/class/art2.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'app/class/art2.php') diff --git a/app/class/art2.php b/app/class/art2.php index a43d35e..4561773 100644 --- a/app/class/art2.php +++ b/app/class/art2.php @@ -431,7 +431,11 @@ class Art2 public function authors($type = 'array') { - return $this->authors; + if($type == 'string') { + return implode(', ', $this->authors); + } elseif ($type == 'array') { + return $this->authors; + } } public function invites($type = 'array') -- cgit v1.2.3