From 6b76df89ea8b894bbb7e93b52adc3f2ea7423add Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Fri, 9 Sep 2016 16:30:48 -0400 Subject: [PATCH] Fixed some undefined reference messages. --- classes/data/dataContacts.php | 2 +- models/admin/contacts/index.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/classes/data/dataContacts.php b/classes/data/dataContacts.php index 03ca442..3770b74 100644 --- a/classes/data/dataContacts.php +++ b/classes/data/dataContacts.php @@ -462,7 +462,7 @@ class GlmDataContacts extends GlmDataAbstract } // 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'].";"); } diff --git a/models/admin/contacts/index.php b/models/admin/contacts/index.php index ff16e43..f9bf4ab 100644 --- a/models/admin/contacts/index.php +++ b/models/admin/contacts/index.php @@ -120,6 +120,7 @@ class GlmMembersAdmin_contacts_index extends GlmDataContacts $limit = 20; // Set to the number of listings per page $namesList = false; + $where = ''; $validOptions = array( 'create', @@ -507,7 +508,7 @@ class GlmMembersAdmin_contacts_index extends GlmDataContacts // Make sure option is set to list $option = 'list'; - $where = true; + $where = ' TRUE '; // Only list member contacts for the selected member if ($haveMember) { -- 2.17.1