diff --git a/pages/account/13.php b/pages/account/13.php
index a6391ca..90b661b 100644
--- a/pages/account/13.php
+++ b/pages/account/13.php
@@ -16,7 +16,10 @@
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/ ?>
- $user = $_SESSION['profile'];
+ $query = "select * from `users` where `id`='".intval($_SESSION['profile']['id'])."' and `users`.`deleted`=0";
+ $res = mysql_query($query);
+ $user = mysql_fetch_assoc($res);
+
$year = intval(substr($user['dob'], 0, 4));
$month = intval(substr($user['dob'], 5, 2));
$day = intval(substr($user['dob'], 8, 2));
@@ -63,7 +66,7 @@
{
echo "";
}
?>
@@ -74,7 +77,7 @@
{
echo "";
}
?>