[dev] Re: Bug in ingo or bad config?

Joel Vandal jvandal at infoteck.qc.ca
Mon Jun 16 11:46:28 PDT 2003


Miss to post also these change since I've got the same problem ...

Index: filters.php
===================================================================
RCS file: /repository/ingo/filters.php,v
retrieving revision 1.23
diff -r1.23 filters.php
136c136
<     $rule_count = array_sum(array_map(create_function('$a', "return
(in_array(\$a['action'], \$_SESSION['ingo']['script_categories'])) ? 1 :
0;"), $rules));
---
>     $rule_count = array_sum(array_map(create_function('$a', "return
(@in_array(\$a['action'], \$_SESSION['ingo']['script_categories'])) ? 1 :
0;"), $rules));
140c140
<         if (!in_array($filter['action'],
$_SESSION['ingo']['script_categories'])) {
---
>         if (!@in_array($filter['action'],
$_SESSION['ingo']['script_categories'])) {

> > These change work for me and now the error message doesn't appear...
>
> Thanks, now the error in the menu bar not appear but in the body now show
> this:
> --------start------------
> Notice: Undefined index: script_categories in
> /var/www/html/test/horde/ingo/filters.php(125) : runtime-created function
> on line 1
>
> Warning: in_array() [function.in-array]: Wrong datatype for second
argument
> in /var/www/html/test/horde/ingo/filters.php(125) : runtime-created
> function on line 1
>
> Notice: Undefined index: script_categories in
> /var/www/html/test/horde/ingo/filters.php(125) : runtime-created function
> on line 1
>
> Warning: in_array() [function.in-array]: Wrong datatype for second
argument
> in /var/www/html/test/horde/ingo/filters.php(125) : runtime-created
> function on line 1
>
> Notice: Undefined index: script_categories in
> /var/www/html/test/horde/ingo/filters.php(125) : runtime-created function
> on line 1
>
> Warning: in_array() [function.in-array]: Wrong datatype for second
argument
> in /var/www/html/test/horde/ingo/filters.php(125) : runtime-created
> function on line 1
>
> Notice: Undefined index: script_categories in
> /var/www/html/test/horde/ingo/filters.php on line 129
>
> Warning: in_array() [function.in-array]: Wrong datatype for second
argument
> in /var/www/html/test/horde/ingo/filters.php on line 129
>
> Notice: Undefined index: script_categories in
> /var/www/html/test/horde/ingo/filters.php on line 129
>
> Warning: in_array() [function.in-array]: Wrong datatype for second
argument
> in /var/www/html/test/horde/ingo/filters.php on line 129
>
> Notice: Undefined index: script_categories in
> /var/www/html/test/horde/ingo/filters.php on line 129
>
> Warning: in_array() [function.in-array]: Wrong datatype for second
argument
> in /var/www/html/test/horde/ingo/filters.php on line 129
> --------------end--------



More information about the dev mailing list