summaryrefslogtreecommitdiffstats
path: root/lib/user
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-01-31 12:12:39 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-01-31 12:12:39 +0100
commitab255e8bb6551f97f85b863c47549281103de95d (patch)
tree67c1c3823a6d299e3de7ce109cc9bb13d9b010ee /lib/user
parent9a19c0af4b6a74f1578c8d86d4ef445a6ca132c2 (diff)
downloadnextcloud-server-ab255e8bb6551f97f85b863c47549281103de95d.tar.gz
nextcloud-server-ab255e8bb6551f97f85b863c47549281103de95d.zip
add missing brackets
Diffstat (limited to 'lib/user')
-rw-r--r--lib/user/database.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/user/database.php b/lib/user/database.php
index a9ec7b1bfe8..8dfd9534a96 100644
--- a/lib/user/database.php
+++ b/lib/user/database.php
@@ -167,8 +167,9 @@ class OC_User_Database extends OC_User_Backend {
$result = $query->execute(array($search.'%'));
while ($row = $result->fetchRow()) {
$displayName = trim($row['displayname'], ' ');
- if ( empty($displayName) )
- $displayNames[$row['uid']] = $row['uid'];
+ if ( empty($displayName) ) {
+ $displayNames[$row['uid']] = $row['uid'];
+ }
}