Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
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...
commit f30a3bd7602ee7c9f670ee0d3fe642d625fd49b3 1 parent 7dcfdb0
@halkyon halkyon authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 model/Database.php
View
4 model/Database.php
@@ -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
/**
Please sign in to comment.
Something went wrong with that request. Please try again.