summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorDumk0 <dmitri.klimeko@gmail.com>2012-07-05 02:09:31 +0200
committerDumk0 <dmitri.klimeko@gmail.com>2012-07-05 02:09:31 +0200
commit62e6816fc6c7651df9dc20abd713e0ec06a9ac34 (patch)
treef81c4cc9a7562442d652615986a1face2f4cbcd1 /system/libraries
parent08364ea08c53bd872504d5d6c20110540df5e81f (diff)
improvement for latest migration id calculation
Diffstat (limited to 'system/libraries')
-rw-r--r--system/libraries/Migration.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/libraries/Migration.php b/system/libraries/Migration.php
index 3a1e7a0ad..ea46ce665 100644
--- a/system/libraries/Migration.php
+++ b/system/libraries/Migration.php
@@ -292,7 +292,7 @@ class CI_Migration {
// Calculate the last migration step from existing migration
// filenames and procceed to the standard version migration
- return $this->version((int) substr($last_migration, 0, 3));
+ return $this->version((int)$last_migration);
}
// --------------------------------------------------------------------