If "bans" is an array of arrays, then I think you should be able to use $k['duration'] (or k.duration in a template tag). I'm not 100% sure about the $k in a condition because I've never tried it.
I'm not sure why you're having an issue with it being true sometimes when set to false. You could try checking using "!==False" to make sure it's not something else that converts to false, but if you're setting it to False it definitely shouldn't be true.
It might help if you can show us some of the relevant php.
|