diff options
-rw-r--r-- | core/helpers/core_installer.php | 2 | ||||
-rw-r--r-- | modules/auth/helpers/auth_installer.php | 2 | ||||
-rw-r--r-- | modules/user/helpers/user_installer.php | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/core/helpers/core_installer.php b/core/helpers/core_installer.php index 89d3f515..df194497 100644 --- a/core/helpers/core_installer.php +++ b/core/helpers/core_installer.php @@ -23,7 +23,7 @@ class core_installer { try { $base_version = ORM::factory("module")->where("name", "core")->find()->version; } catch (Exception $e) { - if ($e->getCode() == 44) { + if ($e->getCode() == E_DATABASE_ERROR) { $base_version = 0; } else { throw $e; diff --git a/modules/auth/helpers/auth_installer.php b/modules/auth/helpers/auth_installer.php index b1477ff8..f5c3ab95 100644 --- a/modules/auth/helpers/auth_installer.php +++ b/modules/auth/helpers/auth_installer.php @@ -24,7 +24,7 @@ class auth_installer { try { $base_version = ORM::factory("module")->where("name", "auth")->find()->version; } catch (Exception $e) { - if ($e->getCode() == 44) { + if ($e->getCode() == E_DATABASE_ERROR) { $base_version = 0; } else { Kohana::log("error", $e); diff --git a/modules/user/helpers/user_installer.php b/modules/user/helpers/user_installer.php index 97202e1f..c69781e5 100644 --- a/modules/user/helpers/user_installer.php +++ b/modules/user/helpers/user_installer.php @@ -24,7 +24,7 @@ class user_installer { try { $base_version = ORM::factory("module")->where("name", "user")->find()->version; } catch (Exception $e) { - if ($e->getCode() == 44) { + if ($e->getCode() == E_DATABASE_ERROR) { $base_version = 0; } else { Kohana::log("error", $e); |