Empty commit

This commit is contained in:
Git 2012-03-18 08:00:22 +00:00
parent 918a2b9a12
commit fd62c25012

View File

@ -239,9 +239,9 @@ function next_hour() {
$Users = $DB->to_array(); $Users = $DB->to_array();
foreach ($Users as $UserID) { foreach ($Users as $UserID) {
list($UserID) = $UserID; list($UserID) = $UserID;
$DB->query("SELECT Invites FROM users_main WHERE ID=$UserID"); $DB->query("SELECT Invites, PermissionID FROM users_main WHERE ID=$UserID");
list($Invites) = $DB->next_record(); list($Invites, $PermID) = $DB->next_record();
if ($Invites < 10) { if (($Invites < 2 && $Classes[$PermID]['Level'] <= $Classes[POWER]['Level']) || ($Invites < 4 && $PermID == ELITE)) {
$DB->query("UPDATE users_main SET Invites=Invites+1 WHERE ID=$UserID"); $DB->query("UPDATE users_main SET Invites=Invites+1 WHERE ID=$UserID");
$Cache->begin_transaction('user_info_heavy_'.$UserID); $Cache->begin_transaction('user_info_heavy_'.$UserID);
$Cache->update_row(false, array('Invites' => '+1')); $Cache->update_row(false, array('Invites' => '+1'));