summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/auth/helpers/auth_installer.php2
-rw-r--r--modules/user/helpers/user_installer.php2
2 files changed, 2 insertions, 2 deletions
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);