}
// Only run these tests for insert and update
- if ($this->postProcess && $_REQUEST['option'] == 'submit') {
+ if ($this->postProcess && isset($_REQUEST['option']) && $_REQUEST['option'] == 'submit') {
if ($r['primary_contact']) {
$this->wpdb->query("UPDATE ".$this->table." SET primary_contact = false where id != ".$r['id'].";");
}
$limit = 20; // Set to the number of listings per page
$namesList = false;
+ $where = '';
$validOptions = array(
'create',
// Make sure option is set to list
$option = 'list';
- $where = true;
+ $where = ' TRUE ';
// Only list member contacts for the selected member
if ($haveMember) {