summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-03-04 14:06:25 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-03-04 14:06:25 +0100
commit8be6054e5ce8aeffd6e305317e57e2747f7909ea (patch)
tree50cf329652376c4e56576a2861cb8863d9d4b5bf
parent048e11d25fa3d44f81598ce0cb202ca11c93248e (diff)
parent98f5423df7c20a22904ea6ac84de279b0a2e5b04 (diff)
downloadnextcloud-server-8be6054e5ce8aeffd6e305317e57e2747f7909ea.tar.gz
nextcloud-server-8be6054e5ce8aeffd6e305317e57e2747f7909ea.zip
Merge pull request #22851 from owncloud/issue-22849-php54-for-comments
ucwords does not support delimiter before 5.4.32
-rw-r--r--lib/private/comments/comment.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/comments/comment.php b/lib/private/comments/comment.php
index 31848ed38b6..60663d61578 100644
--- a/lib/private/comments/comment.php
+++ b/lib/private/comments/comment.php
@@ -362,7 +362,7 @@ class Comment implements IComment {
protected function fromArray($data) {
foreach(array_keys($data) as $key) {
// translate DB keys to internal setter names
- $setter = 'set' . str_replace('_', '', ucwords($key,'_'));
+ $setter = 'set' . implode('', array_map('ucfirst', explode('_', $key)));
$setter = str_replace('Timestamp', 'DateTime', $setter);
if(method_exists($this, $setter)) {