From f64d7401b1001bfbec74e787ed76d487cf2dcb5b Mon Sep 17 00:00:00 2001 From: rootcoma Date: Wed, 4 Dec 2013 20:08:18 -0800 Subject: [PATCH] Declaring empty arrays --- php/profile.php | 4 ++-- php/user.php | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) 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;