mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
7dcfdb05fa
commit
f30a3bd760
@ -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
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user