MantisBT: master f39d92fc

Author Committer Branch Timestamp Parent
dhx dhx master 2010-03-26 08:43 master cfc8737f
Changeset

Incorrect logic in check_selected()

The check_selected() function fails when the first argument is an array
of strings and the second argument is an integer, float or boolean
value.

This patch resolves incorrect logic that led to a === type safe
comparison between a string and another type. Obviously if we know the
two types don't match, there is no point doing a type safe comparison on
the two variables!

mod - core/helper_api.php Diff File