Forums

[Plugin: WordPress Download Monitor] Bug Fix (2 posts)

  1. hOBOJoE
    Member
    Posted 2 years ago #

    I noticed that when you have sub-categories and view the Edit Downloads panel in wp-admin, it shows in the format: #ID# - Subcat -- Subcat instead of: #ID# - Parent -- Subcat

    To fix this, replace lines 1449 - 1452 from this:

    while ($c>0) {
    	$c = $wpdb->get_row("SELECT * FROM $wp_dlm_db_cats where id=".$c->parent." LIMIT 1;");
    	$chain = $c->name.' — '.$chain;
    }

    to this:

    if ($c>0) {
    	$c = $wpdb->get_row("SELECT * FROM $wp_dlm_db_cats where id=".$d->parent." LIMIT 1;");
    	$chain = $c->name.' — '.$chain;
    }
  2. andfer
    Member
    Posted 2 years ago #

    Hi. I thougt it was a fix for my problem here. But as I see it, my problem is the same, but just in the public view/users view.

Topic Closed

This topic has been closed to new replies.

About this Topic