WordPress.org

Ready to get started?Download WordPress

Forums

Relevanssi - A Better Search
[resolved] Notice: doc_weight undefined when no results (2 posts)

  1. ScreenfeedFr
    Member
    Posted 2 years ago #

    Hi.

    When there's no result found I have this notice:

    Notice: Undefined variable: doc_weight in /bar/foo/wp-content/plugins/relevanssi/relevanssi.php on line 1308

    Is there a way to get rid of this?

    Thanks.
    Greg

    http://wordpress.org/extend/plugins/relevanssi/

  2. ScreenfeedFr
    Member
    Posted 2 years ago #

    ok, I found a way, I just added this before the line:
    $doc_weight = isset($doc_weight) ? $doc_weight : array();

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.