joomla/joomla-platform — pull request #1486 by pasamio (2012-08-23 21:07:32+00:00)
Title: Validate that the key parameter is a string

This pull request validates that the `$key` parameter provided to the function is actually a string before trying to use this. I came across this as I was working to modify JTable to be able to support multiple primary keys in a somewhat transparent way. By default JTable passes through it's keys onto the database `insertObject` and `updateObject` function which works well for single keys but not properly for `insertObject` when the `$key` is an array.