Nahuel --

This may have already been patched.

The comparison in my test version of Koha is:
if ($#$errors == -1) ...

In any case, this is an incorrect patch on the face of it, using string
comparison (eq) against 0.

--Joe

On Tue, Oct 14, 2008 at 11:29 AM, Nahuel Angelinetti <
[EMAIL PROTECTED]> wrote:

> ---
>  reports/guided_reports.pl |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/reports/guided_reports.pl b/reports/guided_reports.pl
> index 9d80314..1fa939b 100755
> --- a/reports/guided_reports.pl
> +++ b/reports/guided_reports.pl
> @@ -399,7 +399,7 @@ elsif ($phase eq 'Export'){
>        my $sql = $input->param('sql');
>         my $format = $input->param('format');
>        my ($results, $total, $errors) = execute_query($sql,1,0,0,$format);
> -        if (!defined($errors)) {
> +        if ( @$errors eq 0 ) {
>             $no_html=1;
>             print $input->header(       -type =>
> 'application/octet-stream',
>                                         -attachment=>'reportresults.csv'
>
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to