From 3bc32b37c504df614d73cffea0a1060736e05ac4 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur <eldy@users.sourceforge.net> Date: Fri, 25 Mar 2011 19:33:18 +0000 Subject: [PATCH] Fix: Bad cache management --- htdocs/comm/action/index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htdocs/comm/action/index.php b/htdocs/comm/action/index.php index 66f238b6db3..35608e6729f 100644 --- a/htdocs/comm/action/index.php +++ b/htdocs/comm/action/index.php @@ -760,6 +760,7 @@ function show_day_events($db, $day, $month, $year, $monthshown, $style, &$eventa $thirdparty->fetch($event->societe->id); $cachethirdparties[$event->societe->id]=$thirdparty; } + else $thirdparty=$cachethirdparties[$event->societe->id]; $linerelatedto.=$thirdparty->getNomUrl(1,'',$length); } if (! empty($event->contact->id)) @@ -768,8 +769,9 @@ function show_day_events($db, $day, $month, $year, $monthshown, $style, &$eventa { $contact=new Contact($db); $contact->fetch($event->contact->id); - $cachecontacts[$event->contact->id]=$thirdparty; + $cachecontacts[$event->contact->id]=$contact; } + else $contact=$cachecontacts[$event->contact->id]; if ($linerelatedto) $linerelatedto.=' / '; $linerelatedto.=$contact->getNomUrl(1,'',$length); } -- GitLab