You better post your latest code for discussion and explain what is $resultset in your code. You may enable debug and check your condition using, e.g.
Log($resultset['IsLockedOut']);
and check the value in the log file.
You better post your latest code for discussion and explain what is $resultset in your code. You may enable debug and check your condition using, e.g.
Log($resultset['IsLockedOut']);
and check the value in the log file.