MantisBT: master a105985e

Author Committer Branch Timestamp Parent
dregad dregad master 2012-01-02 03:58 master 04bf9d62
Affected Issues  0012081: call function config_set error
 0012082: call function token_create error
Changeset

Fix SQL errors with SQL Server

This commit addresses 2 occurences of SQL Server error: "Operand type
clash: int is incompatible with text" which are triggered when calling
the following functions:

  • config_set()
  • token_create()
  • token_update()

This is due to the field "Value" in the relevant Mantis table being of
type TEXT, while the corresponding value in the array passed in call to
db_query_bound() is not a string.

Thanks to genius_p for the original patch.

Fixes 0012081, 0012082

mod - core/config_api.php Diff File
mod - core/tokens_api.php Diff File