Commit 6b6c2f2a authored by Richard Mansfield's avatar Richard Mansfield
Browse files

session/user stuff

parent 94bcbb0a
......@@ -30,9 +30,9 @@ define('PUBLIC', 1);
require('init.php');
require_once('pieforms/pieform.php');
if ($SESSION->is_logged_in()) {
$name = display_name($USER);
$email = $USER->email;
if ($USER->is_logged_in()) {
$name = display_name($USER->get('id'));
$email = $USER->get('email');
}
else {
$name = '';
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment