minor bugfix

Bo Daley <[email protected]>
Newsgroups gmane.comp.horde.whups
Message-ID <[email protected]>
this patch silences a warning on the ticket search results page when no clients
were selected for searching.

thanks,

bo.


-- 
Whups mailing list
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: [email protected]
search.diff (text/diff, 1.2 KB)
Index: search.php
===================================================================
RCS file: /repository/whups/search.php,v
retrieving revision 1.50
diff -u -r1.50 search.php
--- search.php	16 Sep 2003 23:08:50 -0000	1.50
+++ search.php	14 Oct 2003 03:22:15 -0000
@@ -47,10 +47,12 @@
             $moduleInfo = $whups->getModule($info['module']);
             $moduleName = !empty($moduleInfo['name']) ? $moduleInfo['name'] : _("Any");
             if ($GLOBALS['registry']->hasMethod('clients/getClient')) {
-                $clientInfo = $whups->getClientDetails($info['client']);
                 $clientName = '';
-                foreach ($clientInfo as $client) {
-                    $clientName .= !empty($clientName) ? ', ' . $client['name'] : $client['name'];
+                if (!empty($info['client'])) {
+                    $clientInfo = $whups->getClientDetails($info['client']);
+                    foreach ($clientInfo as $client) {
+                        $clientName .= !empty($clientName) ? ', ' . $client['name'] : $client['name'];
+                    }
                 }
                 if (empty($clientName)) {
                     $clientName = _("Any");
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.