From 04160dda8682e9266f0fbbe69981e83c99ab70fc Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Thu, 13 Mar 2008 19:31:31 +0000 Subject: [PATCH] dont search of titles if no ids given --- phpgwapi/inc/class.egw_link.inc.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.egw_link.inc.php b/phpgwapi/inc/class.egw_link.inc.php index 8d3ca5f8a5..a8fad598c3 100644 --- a/phpgwapi/inc/class.egw_link.inc.php +++ b/phpgwapi/inc/class.egw_link.inc.php @@ -106,7 +106,7 @@ class egw_link extends solink private static $title_cache = array(); /** - * Private constructor to forbide instanciated use + * Private constructor to forbid instanciated use * */ private function __construct() @@ -328,6 +328,11 @@ class egw_link extends solink */ static function get_links_multiple($app,array $ids,$cache_titles=true,$only_app='',$order='link_lastmod DESC' ) { + //echo "

".__METHOD__."('$app',".print_r($ids,true).",$cache_titles,'$only_app','$order')

\n"; + if (!$ids) + { + return array(); // no ids are linked to nothing + } $links = solink::get_links($app,$ids,$only_app,$order); if (empty($only_app) || $only_app == self::VFS_APPNAME || @@ -542,7 +547,6 @@ class egw_link extends solink { return self::$title_cache[$app.':'.$id]; } - //echo "

".__METHOD__."('$app','$id')

\n"; if ($app == self::VFS_APPNAME) { if (is_array($id) && $link)