aboutsummaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorMikael Nordfeldth <mmn@hethane.se>2016-02-08 12:21:46 +0100
committerMikael Nordfeldth <mmn@hethane.se>2016-02-08 12:21:46 +0100
commit3dea259f524337c8c6112d71481ea57b1f0b53ac (patch)
tree4bc3f61773fd255e2a45bddef93be30e41662437 /classes
parent2938b3e96072d21bac5c01dc54a79cf74c4bdf70 (diff)
downloadgnu-social-3dea259f524337c8c6112d71481ea57b1f0b53ac.tar
gnu-social-3dea259f524337c8c6112d71481ea57b1f0b53ac.zip
Return intval from getID()
Diffstat (limited to 'classes')
-rw-r--r--classes/Managed_DataObject.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/classes/Managed_DataObject.php b/classes/Managed_DataObject.php
index c02685e55e..28e7e1b658 100644
--- a/classes/Managed_DataObject.php
+++ b/classes/Managed_DataObject.php
@@ -409,8 +409,7 @@ abstract class Managed_DataObject extends Memcached_DataObject
throw new Exception('Empty ID for object! (not inserted yet?).');
}
- // FIXME: How about forcing to return an int? Or will that overflow eventually?
- return $this->id;
+ return intval($this->id);
}
// 'update' won't write key columns, so we have to do it ourselves.