Undefined variable $query_join bug and fix
-
A fantastic plugin. I am beyond grateful.
Upgraded to latest and get this error message on every search:
Notice: Undefined variable: query_join in /home/public_html/dev/content-wp/plugins/relevanssi/lib/search.php on line 468
Looks like an undefined $query_join slips through.
I fixed it by adding one line of code there:
if (!empty($meta_join)) $query_join = $meta_join; if (!isset($query_join)) { $query_join = ''; } //DS $query_join = apply_filters('relevanssi_join', $query_join);
I’m sure you have a more elegant fix, but I hope this helps.
Thanks again for the excellent contribution to WordPress.
Dave Stein
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Undefined variable $query_join bug and fix’ is closed to new replies.