summaryrefslogtreecommitdiffstats
path: root/settings/ajax/changedisplayname.php
diff options
context:
space:
mode:
Diffstat (limited to 'settings/ajax/changedisplayname.php')
-rw-r--r--settings/ajax/changedisplayname.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/settings/ajax/changedisplayname.php b/settings/ajax/changedisplayname.php
index 1e52182ccf6..c4d149b4dec 100644
--- a/settings/ajax/changedisplayname.php
+++ b/settings/ajax/changedisplayname.php
@@ -7,7 +7,7 @@ OC_JSON::checkLoggedIn();
$l = \OC::$server->getL10N('settings');
$username = isset($_POST["username"]) ? $_POST["username"] : OC_User::getUser();
-$displayName = $_POST["displayName"];
+$displayName = (string)$_POST["displayName"];
$userstatus = null;
if(OC_User::isAdminUser(OC_User::getUser())) {