Prescribe and Dispense error

aperezcrespo wrote on Monday, February 12, 2007:

Its either my installation or something is off.
If the value in the units box next to Prescribe and Dispense box is over the inventory value the following error is displayed.
Fatal error: Function name must be a string in /var/www/openemr/interface/drugs/dispense_drug.php on line 28

Thanks
Alfonso

sunsetsystems wrote on Monday, February 12, 2007:

I think there are two problems here.  One is a bug in dispense_drug.php, where line 28 is:

   $die("There has been a mail error sending to " . $recipient .

but should be:

   die("There has been a mail error sending to " . $recipient .

And the other problem is whatever was causing the mail-sending error.  Perhaps if you apply this change to your installation, you’ll get a more helpful error message.  In the meantime I’ll apply it in CVS.

Rod
www.sunsetsystems.com