diff options
Diffstat (limited to 'core/namespace')
-rw-r--r-- | core/namespace/Migrator.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/namespace/Migrator.php b/core/namespace/Migrator.php index 1a05cc1..6eec9a5 100644 --- a/core/namespace/Migrator.php +++ b/core/namespace/Migrator.php @@ -16,7 +16,8 @@ class Migrator { try { $Statement = $Database->query('SELECT schema_version FROM migration'); - if(!$this->version = $Statement->fetchColumn()) { + # Explicitly check for FALSE, because result can be "0" + if(($this->version = $Statement->fetchColumn()) === FALSE) { throw new Exception('The migration table does exist, but there is no row containing the currently used on-disk schema version!'); } |