I forked a project on Github and try to make some changes as a learning experience. And I'm running into a weird thing and I'm having trouble figuring this out:
Even though the variable isnew is a boolean and only ever set to true/false or 1/0 in the code, it sometimes has funny values like "46" or "894334" ... Can you guys help me figure out what's wrong here?
Sorry to disagree, but I don't think the "funny values" coming from isnew. What makes you think it is ? The only reason you would see a non 0 or 1 in a bool is if the variable was uninitialized and you haven't assigned it a value in the code.
If you send feedback to Bountify, maybe they can fix it.
On their website, it appears it's sent to paypal within 48 hours, so you may still have time.
I would really appreciate it.
I agree all the answers were on the right track, although I pointed to the line of code and suggested the solution. I was typing a reply here when I guess I should have been using the other site and the other guy got his post in just before mine. I'm just disappointed since that's the first time I ever had a chance to win/earn a reward for coding.
It's all good, it's actually not worth the effort to try and get it fixed probably. I enjoyed the challenge and that's what's important.