Manage Banners Undefined Variable BG FIXED

Discussion in 'General Support' started by nay27uk, Apr 15, 2012.

  1. nay27uk

    nay27uk Super Moderator Staff Member

    Joined:
    Nov 24, 2009
    Messages:
    4,129
    Likes Received:
    298
    Ok just fixed another problem with the admin side.
    When visiting Advertisment page it puts an error in the error log that says " Unknown error type: [8] Undefined variable: bg on "

    THE FIX:::

    open admin/managebanners.php on line 39 find code
    PHP:
    while ($row mysql_fetch_assoc($res))
    Directly above it add code
    PHP:
    $bg '';
    the code from lines 33 - 41 now looks like this
    PHP:
    // Retrieve users from the database
    $query "SELECT u.*, COUNT(b.user) as count FROM " $DBPrefix "bannersusers u
      LEFT JOIN " 
    $DBPrefix "banners b ON (b.user = u.id)
      GROUP BY u.id ORDER BY u.name"
    ;
    $res mysql_query($query);
    $system->check_mysql($res$query__LINE____FILE__);
    $bg '';
    while (
    $row mysql_fetch_assoc($res))
    {
    I will also add this to the service pack and main download, I will post update threads in the service pack thread each time the service pack is updated
     
    Rupert Avery likes this.
  2. Guest

    Guest Guest

    Nice thank you nay :)
     
  3. nay27uk

    nay27uk Super Moderator Staff Member

    Joined:
    Nov 24, 2009
    Messages:
    4,129
    Likes Received:
    298
    Got a another one I fixed comming a bit later, i'm a bit tired so going bed for an hour and will post that fix then.
    There are two pages however I just cant get a fix for.

    EDIT::::

    I added it now
     
    Last edited: Apr 15, 2012

Share This Page