From: Brion Vibber Date: Thu, 7 Oct 2010 21:21:06 +0000 (-0700) Subject: tweak for Managed_DataObject table defs X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1f4b168e69c49931be086c9b6519fab64773c2e1;p=quix0rs-gnu-social.git tweak for Managed_DataObject table defs --- diff --git a/classes/Managed_DataObject.php b/classes/Managed_DataObject.php index 162c3c81f0..35d52c5120 100644 --- a/classes/Managed_DataObject.php +++ b/classes/Managed_DataObject.php @@ -38,7 +38,9 @@ abstract class Managed_DataObject extends Memcached_DataObject */ function table() { - $table = self::schemaDef(); + // Hack for PHP 5.2 not supporting late static binding + //$table = static::schemaDef(); + $table = call_user_func(array(get_class($this), 'schemaDef')); return array_map(array($this, 'columnBitmap'), $table['fields']); }