Announcement

Collapse
No announcement yet.

Error on posting a reply

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Error on posting a reply

    Using scalar variable $getuser as an array or object in global.php on line 449

    What's wrong?

  • #2
    This error is occuring because a registered member has posted a message, then the user has been removed, and then a reply has been made to that thread.

    To fix this, find line 448-9 of global.php:

    [code]
    $getuser=$DB_site->query_first("SELECT username FROM user WHERE userid=$post[userid]");
    $usernames.=" $getuser[username] ";
    [/code]

    And replace this with:

    [code]
    if ($getuser=$DB_site->query_first("SELECT username FROM user WHERE userid=$post[userid]")) {
    $usernames.=" $getuser[username] ";
    }
    [/code]

    John
    John Percival

    Artificial intelligence usually beats real stupidity ;)

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X