// Get the total number of contacts listed
$numbContacts = $this->getStats($where);
-
// If the number of events is less than a page, don't do paging
if ($numbContacts <= $limit) {
$paging = false;
}
+
+ // Setting $paging to false until we figure it out for contacts
+ $paging = false;
// Get full list of names matching this where clause for search box
$namesList = $this->getIdName($where);
$contactsList = $this->getList($where);
if ($contactsList != false) {
+
if ($paging) {
+
//Get paging results
$numbDisplayed = $contactsList['returned'];
$lastDisplayed = $contactsList['last'];
-- all queries must be separated by a line with four dashses
-- Add primary_contact field
-ALTER TABLE {prefix}contacts ADD COLUMN county TINYTEXT;
+ALTER TABLE {prefix}contacts ADD COLUMN primary_contact BOOLEAN;
+
+----
+
+-- Update primary_contacts to default all current entries to false
+UPDATE {prefix}contacts SET primary_contact = false;
\ No newline at end of file
-- all queries must be separated by a line with four dashses
-- Add primary_contact field
-ALTER TABLE {prefix}contacts ADD COLUMN primary_contact BOOLEAN;
-
-----
-
--- Update primary_contacts to default all current entries to false
-UPDATE {prefix}contacts SET primary_contact = false;
-
-
-
-
-
+ALTER TABLE {prefix}contacts ADD COLUMN county TINYTEXT;
\ No newline at end of file