[dev] PATCH: fix for when there are no clients.

Jason M. Felice jfelice at cronosys.com
Thu Jul 17 10:39:12 PDT 2003


-- 
 Jason M. Felice
 Cronosys, LLC <http://www.cronosys.com/>
 216.221.4600 x302
-------------- next part --------------
Index: whups/lib/Driver.php
===================================================================
RCS file: /repository/whups/lib/Driver.php,v
retrieving revision 1.46
diff -u -u -r1.46 Driver.php
--- whups/lib/Driver.php	17 Jul 2003 16:38:45 -0000	1.46
+++ whups/lib/Driver.php	17 Jul 2003 17:36:21 -0000
@@ -94,8 +94,10 @@
                               );
                 $results = $registry->call('contacts/search', $args);
                 $clientlist = $results[''];
-                foreach ($clientlist as $client) {
-                    $clients[$client['id']] = $client['name'];
+                if (is_null ($clientlist)) {
+                    foreach ($clientlist as $client) {
+                        $clients[$client['id']] = $client['name'];
+                    }
                 }
                 if (!empty($module)) {
                     $clients = $this->filterClientsByModule($clients, $module);


More information about the dev mailing list