summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/helpers/core_installer.php2
-rw-r--r--modules/user/helpers/user_installer.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/core/helpers/core_installer.php b/core/helpers/core_installer.php
index bbcf9bd1..89d3f515 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->getMessage() == "Table modules does not exist in your database.") {
+ if ($e->getCode() == 44) {
$base_version = 0;
} else {
throw $e;
diff --git a/modules/user/helpers/user_installer.php b/modules/user/helpers/user_installer.php
index 3e3af696..97202e1f 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->getMessage() == "Table modules does not exist in your database.") {
+ if ($e->getCode() == 44) {
$base_version = 0;
} else {
Kohana::log("error", $e);