X-Git-Url: http://git.shiar.nl/minimedit.git/blobdiff_plain/db8b9e671cfa5dcb27548dde4f8603a37d33122f..c3518f67a1134e20a497dbfc3161353b650e279d:/contact.php diff --git a/contact.php b/contact.php index 7ffa409..b505375 100644 --- a/contact.php +++ b/contact.php @@ -2,8 +2,8 @@ $error = NULL; if ($_POST) { global $User; - if (!empty($User)) { - $_REQUEST['login'] = $User['name']; + if ($User) { + $_REQUEST['login'] = $User->login; } $error = mailform($_REQUEST); if (!empty($error)) {