[Tickets #6039] Re: contact search box rendered PHP error

bugs at horde.org bugs at horde.org
Tue Dec 25 20:11:25 UTC 2007


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/?id=6039
-----------------------------------------------------------------------
 Ticket             | 6039
 Updated By         | m.gabriel at das-netzwerkteam.de
 Summary            | contact search box rendered PHP error
 Queue              | Kolab
 Type               | Bug
 State              | Assigned
 Priority           | 2. Medium
 Owners             | Gunnar Wrobel
+New Attachment     | field+needle.patch
-----------------------------------------------------------------------


m.gabriel at das-netzwerkteam.de (2007-12-25 15:11) wrote:

please refer to this patch instead, the former one caused more trouble than
anything and is rather python than php style...

grimnir:/usr/local/share/_horde-versions_# diff -u
/usr/local/share/_horde-versions_/horde-webmail-1.1-rc1/turba/lib/Driver/kolab.php
/usr/local/share/_horde-versions_/horde-webmail-1.1-rc1-netzwerkteam/turba/lib/Driver/kolab.php
---
/usr/local/share/_horde-versions_/horde-webmail-1.1-rc1/turba/lib/Driver/kolab.php
 2007-11-29 12:32:57.000000000 +0000
+++
/usr/local/share/_horde-versions_/horde-webmail-1.1-rc1-netzwerkteam/turba/lib/Driver/kolab.php
    2007-12-25 20:09:21.000000000 +0000
@@ -764,8 +764,11 @@
                         $all_matched = true;

                         foreach ($tests as $test) {
-                            $field = $test['field'];
-                            $needle = $test['test'];
+
+                            $field = '';
+                            $needle = '';
+                            if (isset($test['field'])) { $field =
$test['field']; }
+                            if (isset($test['test'])) { $needle =
$test['test']; }

                             if (empty($needle)) {
                                 $keep_entry = true;




More information about the bugs mailing list