$all_confirmed = (count($changed_coefs_ids) == 0) AND (!$payout_too_big);
$all_confirmed = (count($changed_coefs_ids) == 0) && (!$payout_too_big);
How do you think, should those code lines get the same result?
I got different result (comment out one line, then uncooment and comment out another)
Wasted time till I noticed that, since that doens't make sense for me, this was probably the last thing I tried to check.