Log in with username/password: lyceum/lyceum

Ticket #909 (closed defect: fixed)

Opened 6 months ago

Last modified 5 months ago

missing db prefix in function slug_from_blog_id

Reported by: lyceum Assigned to:
Priority: normal Milestone: 1.0.3
Keywords: db prefix Cc:

Description (Last modified by jjb)

function slug_from_blog_id($blog_id){
        global $wpdb;
        return $wpdb->get_var("SELECT slug FROM '''blogs''' WHERE id = '$blog_id'");
}

should be $wpdb->blogs

When using table prefix in wp-config.php, it raises db error.

Change History

03/10/08 05:21:14 changed by jjb

  • description changed.

03/10/08 05:25:04 changed by jjb

  • status changed from new to closed.
  • resolution set to fixed.

nice catch!

r1276

Log in with username/password: lyceum/lyceum