From b3c0f1653fe935b3220d06177a1e0fc396e7c29f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Barrois?= Date: Fri, 19 Mar 2010 17:05:54 +0100 Subject: [PATCH] Fix warning about abstract static functions MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Raphaël Barrois --- include/profilefields.inc.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/profilefields.inc.php b/include/profilefields.inc.php index 567f5e2..486016f 100644 --- a/include/profilefields.inc.php +++ b/include/profilefields.inc.php @@ -34,8 +34,12 @@ abstract class ProfileField * @param $pids An array of pids * @param $visibility The level of visibility fetched fields must have * @return a PlIterator yielding data suitable for a "new ProfileBlah($data)" + * XXX MUST be reimplemented for each kind of ProfileField */ - abstract public static function fetchData(array $pids, $visibility); + public static function fetchData(array $pids, $visibility) + { + return PlIteratorUtils::emptyIterator(); + } public static function buildForPID($cls, $pid, $visibility) { -- 2.1.4