From 3a57656a350a90ecaedb5b3d90eb097b51c13e03 Mon Sep 17 00:00:00 2001 From: mauirixxx Date: Tue, 21 Aug 2018 10:38:18 -1000 Subject: [PATCH] fix for issue #14 --- updateaccountstats.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/updateaccountstats.php b/updateaccountstats.php index cc90ea0..e9d6e7c 100644 --- a/updateaccountstats.php +++ b/updateaccountstats.php @@ -5,7 +5,11 @@ if (isset($_SESSION['userid'])) { if (!isset($_POST['acctitle'])) { $_POST['acctitle'] = "notselected"; } - + if ($_SESSION['prefaccid'] == "0") { + echo 'Please select an account from the menu above to add stats to before continuing'; + include_once ('footer.php'); + exit(); + } if (isset($_POST['titlepoints'])) { // include file just updates the database include_once ('includes/update-titleranks.php');