summaryrefslogtreecommitdiffstats
path: root/system/libraries
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2012-07-05 13:01:10 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2012-07-05 13:01:10 +0200
commit166c20b8ddbad36ff11028cff814bef98ba13ae2 (patch)
tree24b28982a47626b8e1e8f08667009c3f73ba0a0c /system/libraries
parent4763c13c99eab2a720a4d6d913902e5cef4e76ec (diff)
parentdc128cdcacd88980a9dcd3865e0065f19cb0c11c (diff)
Merge pull request #1576 from Dumk0/patch-6
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 99ddc9ed1..c786703ca 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);
}
// --------------------------------------------------------------------