Hi all,

   Sorry to bother you again, but doing some tests
I've found that problem is related to $pid variable.
The Appointments link
[http://192.168.1.11/care2x/modules/registration_admission/show_appointment.php?ntid=false&lang=en&pid=10000002&target=search]
from 'Options for this person' table send pid variable
to script, meanwhile the 'Schedule New Appointment'
link [
http://192.168.1.11/care2x/modules/registration_admission/show_appointment.php?ntid=false&lang=en&target=search&mode=new
 ] doesn't, so the $pid value in this case is empty or
null or whatever. This means that $person_obj variable
has an unknown value due line 33 from
/var/www/htdocs/care2x/modules/registration_admission/include/init_show.php:
...
if(isset($pid) && ($pid!='')) {
           $person_obj=new Person($pid);
...

Then the reference to $person_obj member from line 60
of the same file [init_show.php] is a "Call to a
member function on a non-object"

...
# Check if person is currently admitted
$current_encounter=$person_obj->CurrentEncounter($pid);
...

Line numbers may not be accurate due some lines [ echo
'Pid=$pid; ... ] introduced to display some variables.
OK, so if I'm wrong or right please let me know. I
trully want to get rid of this error.

        Regards,
           lwd.



                
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Care2002-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/care2002-developers

Reply via email to