Skip to content

Commit

Permalink
BUGFIX Database::doesSchemaNeedUpdating() if schemaUpdateTransaction …
Browse files Browse the repository at this point in the history
…is NULL, then return FALSE. If schemaUpdateTransaction is an array, then return TRUE. This replaces the automatic casting which is not clear.
  • Loading branch information
Sean Harvey committed May 10, 2012
1 parent 7dcfdb0 commit f30a3bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions model/Database.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,9 +230,9 @@ function cancelSchemaUpdate() {
* 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

/**
Expand Down

0 comments on commit f30a3bd

Please sign in to comment.