summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Holywell <[email protected]>2016-12-14 14:43:46 +1000
committerSimon Holywell <[email protected]>2016-12-14 14:43:46 +1000
commitb648c4963b1164dfe88ce176835873e103c6921c (patch)
tree0a67e7b386405b72199f993543fc8eaa654dd81c
parent61863c1499b5b8bc5c9b99c7ecf06f78cc53f24b (diff)
parentbd4bc89304f0cc72e6447b7581f2bb2f090106a9 (diff)
Merge branch 'develop' of github.com:j4mie/idiorm into develop
-rw-r--r--idiorm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/idiorm.php b/idiorm.php
index cd01b0d..fa19f60 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();
}