summaryrefslogtreecommitdiff
path: root/idiorm.php
diff options
context:
space:
mode:
Diffstat (limited to 'idiorm.php')
-rw-r--r--idiorm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/idiorm.php b/idiorm.php
index 080ef5d..7125a33 100644
--- a/idiorm.php
+++ b/idiorm.php
@@ -2101,7 +2101,7 @@
// if the primary key is compound, assign the last inserted id
// to the first column
if (is_array($column)) {
- $column = array_slice($column, 0, 1);
+ $column = reset($column);
}
$this->_data[$column] = $db->lastInsertId();
}