From: Steve Sutton Date: Tue, 25 Apr 2017 16:26:06 +0000 (-0400) Subject: Compare the names as both lower case strings X-Git-Tag: v1.6.37^2~7 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=337f045048cdf6e30e6a80713e18f72cfa0fbdae;p=WP-Plugins%2Fglm-member-db-events.git 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. --- 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 ) {