aboutsummaryrefslogtreecommitdiff
path: root/app/class/art2.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2019-08-17 00:02:21 +0200
committervincent-peugnet <v.peugnet@free.fr>2019-08-17 00:02:21 +0200
commit0d863868d69d9e2c9ae3f6f0b22b4d3a1be73ee2 (patch)
tree976e3466be56ab81969d9ea30604c35f58102c70 /app/class/art2.php
parentb5ebee8dea28e3a9c5160de1c56f7715153f3af4 (diff)
downloadwcms-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.php6
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')