[whups] search error

Bo Daley bo at tilda.com.au
Tue Mar 11 13:29:20 PST 2003



When I do a search for 'Any' module I get this message (with error reporting set
to E_ALL):

Notice: Undefined index: Any in /var/www/html/horde/whups/search.php on line 64

This patch fixes it:


Index: search.php
===================================================================
RCS file: /repository/whups/search.php,v
retrieving revision 1.39
diff -u -r1.39 search.php
--- search.php  4 Feb 2003 05:09:41 -0000       1.39
+++ search.php  11 Mar 2003 02:36:15 -0000
@@ -61,7 +61,7 @@
                         $catName .= $categories[$c];
                     }
                 } else {
-                    $catName = $categories[$cat];
+                    $catName = ($cat==_("Any")) ? _("Any") : $categories[$cat];
                 }
             } else {
                 $catName = _("Any");




More information about the whups mailing list