diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2013-03-04 12:08:41 -0500 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2013-03-04 12:08:41 -0500 |
commit | 8b09402b771fcede0cc5183340729b9c4be654e9 (patch) | |
tree | 3223667209a23631fd69ba093ca6d47c6ac98cdb /lib/group/database.php | |
parent | 8c8423e766dc2dedb5fe22ef6a86fd67fc737d79 (diff) | |
download | nextcloud-server-8b09402b771fcede0cc5183340729b9c4be654e9.tar.gz nextcloud-server-8b09402b771fcede0cc5183340729b9c4be654e9.zip |
Fix #2074 by initializing as an array
Diffstat (limited to 'lib/group/database.php')
-rw-r--r-- | lib/group/database.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/group/database.php b/lib/group/database.php index 40e9b0d4147..d0974685ff6 100644 --- a/lib/group/database.php +++ b/lib/group/database.php @@ -219,8 +219,8 @@ class OC_Group_Database extends OC_Group_Backend { * @param int $offset * @return array with display names (value) and user ids (key) */ - public function DisplayNamesInGroup($gid, $search = '', $limit = -1, $offset = 0) { - $displayNames = ''; + public function displayNamesInGroup($gid, $search = '', $limit = -1, $offset = 0) { + $displayNames = array(); $stmt = OC_DB::prepare('SELECT `*PREFIX*users`.`uid`, `*PREFIX*users`.`displayname`' .' FROM `*PREFIX*users`' |