Menu

#3 Fix for config.php prefix error

open
nobody
None
5
2005-04-29
2005-04-29
Matt B
No

Checking a user when prefixing gives an error.

However after having a look I supprised myself and
spotted the problem

Line 257 change:
$query = "SELECT * FROM user WHERE id='$id'";

to:
$query = "SELECT * FROM $GLOBALS
[mysql_prefix]user WHERE id='$id'";

which seemed to fix the issue for me.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.