summaryrefslogtreecommitdiffstats
path: root/lib/user/database.php
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-04-29 12:25:27 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-05-22 13:59:07 +0200
commiteceb3c8ed5f3068808bc8fc5ceec5fda1ac50db9 (patch)
tree1bc89bd6cc323d864b5035c497d69436470e2e9a /lib/user/database.php
parent1b68c0c0cdf1fb68149efd18e661be0a38bcfd62 (diff)
downloadnextcloud-server-eceb3c8ed5f3068808bc8fc5ceec5fda1ac50db9.tar.gz
nextcloud-server-eceb3c8ed5f3068808bc8fc5ceec5fda1ac50db9.zip
add debug output
Diffstat (limited to 'lib/user/database.php')
-rw-r--r--lib/user/database.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/user/database.php b/lib/user/database.php
index 63c64ed43d3..d70b620f2ab 100644
--- a/lib/user/database.php
+++ b/lib/user/database.php
@@ -136,7 +136,7 @@ class OC_User_Database extends OC_User_Backend {
*/
public function getDisplayName($uid) {
if( $this->userExists($uid) ) {
- $query = OC_DB::prepare( 'SELECT displayname FROM `*PREFIX*users` WHERE `uid` = ?' );
+ $query = OC_DB::prepare( 'SELECT `displayname` FROM `*PREFIX*users` WHERE `uid` = ?' );
$result = $query->execute( array( $uid ))->fetchAll();
$displayName = trim($result[0]['displayname'], ' ');
if ( !empty($displayName) ) {