projects
/
WP-Plugins
/
glm-member-db-events.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
150da1e
)
Compare the names as both lower case strings
author
Steve Sutton
<steve@gaslightmedia.com>
Tue, 25 Apr 2017 16:26:06 +0000
(12:26 -0400)
committer
Steve Sutton
<steve@gaslightmedia.com>
Tue, 25 Apr 2017 16:26:06 +0000
(12:26 -0400)
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
patch
|
blob
|
history
diff --git
a/models/front/events/icalFeedImport.php
b/models/front/events/icalFeedImport.php
index
532b430
..
70e064d
100644
(file)
--- 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 ) {