diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2019-08-17 00:02:21 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2019-08-17 00:02:21 +0200 |
commit | 0d863868d69d9e2c9ae3f6f0b22b4d3a1be73ee2 (patch) | |
tree | 976e3466be56ab81969d9ea30604c35f58102c70 /app/class/art2.php | |
parent | b5ebee8dea28e3a9c5160de1c56f7715153f3af4 (diff) | |
download | wcms-0d863868d69d9e2c9ae3f6f0b22b4d3a1be73ee2.tar.gz wcms-0d863868d69d9e2c9ae3f6f0b22b4d3a1be73ee2.zip |
Feature : list is going to work soon
Diffstat (limited to 'app/class/art2.php')
-rw-r--r-- | app/class/art2.php | 6 |
1 files changed, 5 insertions, 1 deletions
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') |