From: Chuck Scott Date: Fri, 9 Sep 2016 20:30:48 +0000 (-0400) Subject: Fixed some undefined reference messages. X-Git-Tag: v1.0.15^2~2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=6b76df89ea8b894bbb7e93b52adc3f2ea7423add;p=WP-Plugins%2Fglm-member-db-contacts.git Fixed some undefined reference messages. --- 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) {