diff --git a/php/profile.php b/php/profile.php index a44f256..639e420 100644 --- a/php/profile.php +++ b/php/profile.php @@ -3,8 +3,6 @@ require_once('includes/autoload.php'); $storage = $container->getStorage(); -$values = array(); - $username = ''; $usernameCanonical = ''; @@ -111,6 +109,8 @@ if ($username != '') { $storage->close(); } +$values = array(); + $values['userProfile'] = $userProfile; $values['username'] = $username; $values['usernameCanonical'] = $usernameCanonical; diff --git a/php/user.php b/php/user.php index 22d0036..a43f521 100644 --- a/php/user.php +++ b/php/user.php @@ -45,6 +45,7 @@ if(count($users) == 1) { die(); } +$values = array(); $values['username'] = $username; $values['usernameCanonical'] = $usernameCanonical; $values['page'] = $page;