Gjergj Sheldija wrote:
> could you please submit those code patches to me ?

Code patch follows.

M.

--- cut here ---
--- class_gui_input_person.php-orig     2008-11-02 16:47:30.000000000 +0000
+++ class_gui_input_person.php  2008-11-02 16:49:21.000000000 +0000
@@ -716,7 +716,8 @@
                
require_once($root_path.'include/care_api_classes/class_address.php');
                $sAddress = '<select name="addr_citytown_name"><option
onclick="document.getElementById(\'addr_zip\').value=\'\'"></option>';
                $address_obj=new Address;
-               $address = $address_obj->getAllActiveCityTown();
+               $address = $address_obj->getAllActiveCityTown();
+               if ($address) // add this line
                while($addr=$address->FetchRow()){
                    $sAddress .= '<option
onclick="document.getElementById(\'addr_zip\').value=\'' .
$addr['zip_code'].'\'" value="' . $addr['name'] . '">' . $addr['name'] .
'</option>';
                }
--- cut here ---


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Care2002-developers mailing list
Care2002-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/care2002-developers

Reply via email to