Ah, you don't have the Store Staff Discount hack installed.
Okay, in store.php, find:
PHP Code:
// ###################### Start Remove Warning Verify #######################
if ($action=="removewarn") {
$contest = $DB_site->query_first("SELECT * FROM store WHERE action='removewarn'");
$storeid=$contest[id];
$costpercent=$DB_site->query_first("SELECT storecost FROM usergroup WHERE usergroupid=$bbuserinfo[usergroupid]");
$cost=round($contest[costs] * ($costpercent[storecost]/100));
$need=$points - $cost;
if ($cost>$points) {
eval("standarderror(\"".gettemplate('store_error')."\");");
}
$warns = $DB_site->query_first("SELECT warninglvl FROM user WHERE userid=$bbuserinfo[userid]");
if ($warns['warninglvl'] < 1 or empty($warns['warninglvl'])) {
eval("standarderror(\"".gettemplate('store_removewarn_error')."\");");
}
$oldwarnings=$warns[warninglvl];
$newwarnings=$oldwarnings-1;
eval("dooutput(\"".gettemplate("store_removewarn_verify")."\");");
}
// ###################### Start Remove Warning #######################
if ($action=="removewarndo") {
$contest = $DB_site->query_first("SELECT * FROM store WHERE action='removewarn'");
$title=$contest[title];
$costpercent=$DB_site->query_first("SELECT storecost FROM usergroup WHERE usergroupid=$bbuserinfo[usergroupid]");
$cost=round($contest[costs] * ($costpercent[storecost]/100));
if ($cost>$points) {
eval("standarderror(\"".gettemplate('store_error')."\");");
} else {
$DB_site->query("UPDATE user SET warninglvl=warninglvl-1,storep=storep-$cost WHERE userid='$bbuserinfo[userid]'");
$changestorenow = $DB_site->query("UPDATE store SET sold=sold+1 WHERE action='removewarn'");
$moneycheck = $DB_site->query_first("SELECT storep FROM user WHERE userid=$bbuserinfo[userid]");
$money = $moneycheck[storep];
eval("dooutput(\"".gettemplate("store_removewarn_done")."\");");
}
}
And replace with:
PHP Code:
// ###################### Start Remove Warning Verify #######################
if ($action=="removewarn") {
$contest = $DB_site->query_first("SELECT * FROM store WHERE action='removewarn'");
$storeid=$contest[id];
$cost=$contest[costs];
$need=$points - $cost;
if ($cost>$points) {
eval("standarderror(\"".gettemplate('store_error')."\");");
}
$warns = $DB_site->query_first("SELECT warninglvl FROM user WHERE userid=$bbuserinfo[userid]");
if ($warns['warninglvl'] < 1 or empty($warns['warninglvl'])) {
eval("standarderror(\"".gettemplate('store_removewarn_error')."\");");
}
$oldwarnings=$warns[warninglvl];
$newwarnings=$oldwarnings-1;
eval("dooutput(\"".gettemplate("store_removewarn_verify")."\");");
}
// ###################### Start Remove Warning #######################
if ($action=="removewarndo") {
$contest = $DB_site->query_first("SELECT * FROM store WHERE action='removewarn'");
$title=$contest[title];
$cost=$contest[costs];
if ($cost>$points) {
eval("standarderror(\"".gettemplate('store_error')."\");");
} else {
$DB_site->query("UPDATE user SET warninglvl=warninglvl-1,storep=storep-$cost WHERE userid='$bbuserinfo[userid]'");
$changestorenow = $DB_site->query("UPDATE store SET sold=sold+1 WHERE action='removewarn'");
$moneycheck = $DB_site->query_first("SELECT storep FROM user WHERE userid=$bbuserinfo[userid]");
$money = $moneycheck[storep];
eval("dooutput(\"".gettemplate("store_removewarn_done")."\");");
}
}
That should work. I'll update the install instructions to take this into account as well.