Provides error correction for no current shop.

This commit is contained in:
Jonathan Rosenbaum
2015-01-07 07:59:33 +00:00
parent b5be74863d
commit 33b4d29417
3 changed files with 25 additions and 11 deletions
+6
View File
@@ -1,9 +1,15 @@
<?php
require_once('../Connections/database_functions.php');
require_once('../Connections/YBDB.php');
mysql_select_db($database_YBDB, $YBDB);
// Is there a current shop?
if(isset($_POST['shop_exist'])) {
if(current_shop_by_ip()>=1) echo "current_shop"; else echo "no_shop";
}
// update whether paid or not
if(isset($_POST['paid'])) {
if ($_POST['paid'] == 1) {