We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 3dea259f authored by mattl's avatar mattl

Return intval from getID()

parent 2938b3e9
......@@ -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.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment