MantisBT: master 63028f91

Author Committer Branch Timestamp Parent
dhx dhx master 2009-09-07 03:36 master 85a07a21
Changeset

db_field_exists fails when no column names are returned by AdoDB

This commit fixes up the error handling within db_field_exists so that
the function returns false if AdoDB cannot return any column names from
a table in the database. Previously an error was raised where a
comparison using in_array() has an invalid type for the second
parameter. This is because the MetaColumnNames function either returns
an array, or false (boolean).

mod - core/database_api.php Diff File