The order was deleted along with the test customer.
I finally got around to compare the current customer.php with the original the only difference is the statements inserted by the customer referral add-on (see the following):
PHP Code:
<!-- bof rmh -->
<td class="dataTableHeadingContent" align="left" valign="top">
<?php echo (($_GET['list_order']=='id-asc' or $_GET['list_order']=='id-desc') ? '<span class="SortOrderHeader">' . TABLE_HEADING_REFERRED_BY . '</span>' : TABLE_HEADING_REFERRED_BY); ?><br>
<a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=id-asc', '', 'NONSSL'); ?>"><?php echo ($_GET['list_order']=='id-asc' ? '<span class="SortOrderHeader">Asc</span>' : '<span class="SortOrderHeaderLink">Asc</b>'); ?></a>
<a href="<?php echo zen_href_link(basename($PHP_SELF) . '?list_order=id-desc', '', 'NONSSL'); ?>"><?php echo ($_GET['list_order']=='id-desc' ? '<span class="SortOrderHeader">Desc</span>' : '<span class="SortOrderHeaderLink">Desc</b>'); ?></a>
</td>
<!-- eof rmh -->
PHP Code:
//rmh referral start
$source_query = "select customers_info_source_id from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . $customers->fields['customers_id'] . "'";
$source = $db->Execute($source_query);
$entry_referral = zen_get_sources_name($source->fields['customers_info_source_id'], $customers->fields['customers_id']);
//rmh referral end
PHP Code:
<!-- bof rmh -->
<td class="dataTableContent"><?php echo $entry_referral; ?></td>
<!-- eof rmh -->