[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Savannah-hackers-public] Patch for sr #106117
From: |
Sylvain Beucler |
Subject: |
Re: [Savannah-hackers-public] Patch for sr #106117 |
Date: |
Fri, 31 Oct 2008 20:27:40 +0100 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
Thanks!
It's installed at Savannah.
--
Sylvain
On Thu, Oct 30, 2008 at 12:25:51PM +0100, Federico Giménez Nieto wrote:
> Hi,
>
> Attached is a patch (generated with git) for
> https://savannah.gnu.org/support/?106117
>
> Let me know if this works for you.
>
> Cheers,
> Federico
> diff --git a/frontend/php/include/trackers/show.php
> b/frontend/php/include/trackers/show.php
> index 6868ad6..c0d3035 100644
> --- a/frontend/php/include/trackers/show.php
> +++ b/frontend/php/include/trackers/show.php
> @@ -335,8 +335,10 @@ function show_item_list_sober ($result_arr,
> for ($i = 0; $i < $result_rows; $i++)
> {
> $thisitem_id = db_result($result_context, $i, 'recipe_id');
> - $thisaudience_results[$thisitem_id] =
> - strtolower($result_arr[$thisitem_id]["summary"]);
> + #check if $thisitem_id exists in $result_array before adding
> to $thisaudience_results
> + if(array_key_exists($thisitem_id, $result_arr))
> + { $thisaudience_results[$thisitem_id] =
> + strtolower($result_arr[$thisitem_id]["summary"]); }
> }
> asort($thisaudience_results);
> $audience_content = '';