Permalink
Browse files

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.
  • Loading branch information...
1 parent 7dcfdb0 commit f30a3bd7602ee7c9f670ee0d3fe642d625fd49b3 @halkyon halkyon committed May 10, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 model/Database.php
View
@@ -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
/**

0 comments on commit f30a3bd

Please sign in to comment.