When no shop, prevents unloaded page transactions from being edited.

This commit is contained in:
Jonathan Rosenbaum
2015-01-15 07:33:09 +00:00
parent fd9fe984d1
commit f8b96a05b7
3 changed files with 62 additions and 5 deletions
+5 -1
View File
@@ -8,7 +8,11 @@ $change_fund = CHANGE_FUND;
// Is there a current shop?
if(isset($_POST['shop_exist'])) {
if(current_shop_by_ip()>=1) echo "current_shop"; else echo "no_shop";
if(current_shop_by_ip()>=1) {
echo "current_shop";
} else {
echo "no_shop";
}
}
// update whether paid or not