summaryrefslogtreecommitdiffstats
path: root/lib/group/database.php
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2013-03-04 12:08:41 -0500
committerMichael Gapczynski <mtgap@owncloud.com>2013-03-04 12:08:41 -0500
commit8b09402b771fcede0cc5183340729b9c4be654e9 (patch)
tree3223667209a23631fd69ba093ca6d47c6ac98cdb /lib/group/database.php
parent8c8423e766dc2dedb5fe22ef6a86fd67fc737d79 (diff)
downloadnextcloud-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.php4
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`'