WordPress.org

Ready to get started?Download WordPress

Forums

WP-Filebase Download Manager
[resolved] [Plugin: WP-Filebase] Bug in wpfb-ajax.php (2 posts)

  1. Remco Tolsma
    Member
    Posted 3 years ago #

    I found a bug in wpfb-ajax.php on line 35.

    $cats = WPFB_Category::GetCats("WHERE cat_exclude_browser = 0 AND cat_parent = $parent_id");

    The 'cat_exclude_browser' comparison with 0 is incorrect, beacuse the 'cat_exclude_browser' is of the type ENUM('0','1'). You should add single quotes around the 0.

    $cats = WPFB_Category::GetCats("WHERE cat_exclude_browser = '0' AND cat_parent = $parent_id");

    http://wordpress.org/extend/plugins/wp-filebase/

  2. Fabian
    Member
    Plugin Author

    Posted 3 years ago #

    Thanks for the report, will be fixed in 0.2.3.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic