From 5949016faa28a392b962d8af3718e2a69104c5c6 Mon Sep 17 00:00:00 2001 From: Nathan Gray Date: Thu, 20 Feb 2014 17:44:53 +0000 Subject: [PATCH] Move reading of favorites into a separate function from rendering list --- phpgwapi/inc/class.egw_favorites.inc.php | 57 ++++++++++++++++-------- 1 file changed, 38 insertions(+), 19 deletions(-) diff --git a/phpgwapi/inc/class.egw_favorites.inc.php b/phpgwapi/inc/class.egw_favorites.inc.php index c790ed0f61..1c8eed7f10 100644 --- a/phpgwapi/inc/class.egw_favorites.inc.php +++ b/phpgwapi/inc/class.egw_favorites.inc.php @@ -56,27 +56,10 @@ class egw_favorites 'state' => array(), 'group' => true ) - ); + ) + self::get_favorites($app); $is_admin = $GLOBALS['egw_info']['user']['apps']['admin']; $html = "