From 337f045048cdf6e30e6a80713e18f72cfa0fbdae Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 25 Apr 2017 12:26:06 -0400 Subject: [PATCH] Compare the names as both lower case strings For the Event Category check in the icalFeedImport script need to compare the category name with lower casing both fields to find the correct category. --- models/front/events/icalFeedImport.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/front/events/icalFeedImport.php b/models/front/events/icalFeedImport.php index 532b430..70e064d 100644 --- a/models/front/events/icalFeedImport.php +++ b/models/front/events/icalFeedImport.php @@ -45,8 +45,8 @@ class GlmMembersFront_events_icalFeedImport $this->wpdb->prepare( "SELECT id FROM " . GLM_MEMBERS_EVENTS_PLUGIN_DB_PREFIX . "categories - WHERE name = %d", - $category + WHERE lower(name) = %d", + strtolower($category) ) ); if ( $category_id ) { -- 2.17.1