Index: civicrm/trunk/sites/all/modules/civicrm_fix_notes/civicrm_fix_notes.module |
— | — | @@ -41,6 +41,10 @@ |
42 | 42 | $db = new civicrm_api_db(); |
43 | 43 | $note = db_result(db_query("SELECT note FROM {civicrm_contribution} WHERE id = '%d'", $curr_id)); |
44 | 44 | |
| 45 | + if (!$note) { |
| 46 | + $note = "N/A"; |
| 47 | + } |
| 48 | + |
45 | 49 | $form->addElement('static', 'donor_comment', "Donor Comment", $note); |
46 | 50 | $form->assign( 'donor_comment' ); |
47 | 51 | |