aboutsummaryrefslogtreecommitdiff
path: root/actions/user/name.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/user/name.php')
-rw-r--r--actions/user/name.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/user/name.php b/actions/user/name.php
index 8ecfa856d..bbeed85ec 100644
--- a/actions/user/name.php
+++ b/actions/user/name.php
@@ -24,7 +24,7 @@
else
$user = get_entity($user_id);
- if ($user)
+ if (($user) && ($name))
{
$user->name = $name;
if ($user->save())