From: Ap.Muthu Date: Sun, 14 Apr 2013 01:54:01 +0000 (+0530) Subject: Fixed missing check for optional "description" index X-Git-Tag: whats-been-changed~348 X-Git-Url: https://repo.or.cz/w/openemr.git/commitdiff_plain/f690a0be84e7fb8caff80fce0b45d6df97c9c4da Fixed missing check for optional "description" index --- diff --git a/library/options.inc.php b/library/options.inc.php index c1b0ba181..3b83d525c 100644 --- a/library/options.inc.php +++ b/library/options.inc.php @@ -116,7 +116,7 @@ function generate_form_field($frow, $currvalue) { $list_id_esc = htmlspecialchars( $list_id, ENT_QUOTES); // Added 5-09 by BM - Translate description if applicable - $description = htmlspecialchars(xl_layout_label($frow['description']), ENT_QUOTES); + $description = (isset($frow['description']) ? htmlspecialchars(xl_layout_label($frow['description']), ENT_QUOTES) : ''); // added 5-2009 by BM to allow modification of the 'empty' text title field. // Can pass $frow['empty_title'] with this variable, otherwise