summaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorBernhard Posselt <nukeawhale@gmail.com>2013-03-20 11:09:06 +0100
committerBernhard Posselt <nukeawhale@gmail.com>2013-03-20 11:09:06 +0100
commit959f29146e7ebec732c7bf54538221307a08189b (patch)
tree971710c9e53e1fbac1053f8ae9ded410fe1baca8 /db
parent4c6cdf277a26f4f6eebc65526e0ca1baccbeeb92 (diff)
use a hashmap for updated fields
Diffstat (limited to 'db')
-rw-r--r--db/entity.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/entity.php b/db/entity.php
index 31a0296cd..165c7a476 100644
--- a/db/entity.php
+++ b/db/entity.php
@@ -80,7 +80,7 @@ abstract class Entity {
* @param string $attribute the name of the attribute
*/
protected function markFieldUpdated($attribute){
- array_push($this->updatedFields, $attribute);
+ $this->updatedFields[$attribute] = true;
}