From 36d1be4717c5d817ccafbed628a760c1126ba967 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sat, 8 Nov 2008 05:12:37 +0000 Subject: 44 --> E_DATABASE_ERROR --- modules/auth/helpers/auth_installer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/auth/helpers') 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); -- cgit v1.2.3