BobTHJ wrote: > Nevermind, I only had 3 rests as of the time of this distrbution. For
And this is why copy+paste is dangerous, and also why voting results self-ratifying is a Good Idea: $q = // long but valid SQL $q = query($q); $ct = pg_fetch_object($q, 0); $caste_then = $ct->caste_then; if (!is_null($caste_then)) $caste = $caste_then; $q = // more long but valid SQL $q = query($q); $rt = pg_fetch_object($q, 0); $rests_then = $ct->rests_then; // here's the bug if (!is_null($rests_then)) $rests = $rests_then; Net effect, it was calculating voting limits based on historical caste + current (not historical) rests. Fixed now, and confirmed against BobTHJ's current status (went from 3 to 2 rests shortly after 6533-41 were distributed).