BUGFIX Database::doesSchemaNeedUpdating() if schemaUpdateTransaction is NULL, then return FALSE. If schemaUpdateTransaction is an array, then return TRUE. This replaces the automatic casting which is not clear.

This commit is contained in:
Sean Harvey 2012-05-10 13:58:29 +12:00
parent 7dcfdb05fa
commit f30a3bd760

View File

@ -230,9 +230,9 @@ abstract class SS_Database {
* Returns true if schema modifications were requested after a beginSchemaUpdate() call.
*/
function doesSchemaNeedUpdating() {
return (bool)$this->schemaUpdateTransaction;
return ($this->schemaUpdateTransaction === null) ? false : true;
}
// Transactional schema altering functions - they don't do anyhting except for update schemaUpdateTransaction
/**