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 6b40dc9..78a1803 100644
--- a/idiorm.php
+++ b/idiorm.php
@@ -559,7 +559,7 @@
// If we've just inserted a new record, set the ID of this object
if ($this->update_or_insert == self::INSERT) {
- $this->update_or_insert == self::UPDATE;
+ $this->update_or_insert = self::UPDATE;
$this->data[$this->get_id_column_name()] = self::$db->lastInsertId();
}