4images Forum & Community

4images Issues / Ausgaben => Installation, Update & Configuration => Topic started by: IcEcReaM on February 16, 2006, 12:56:04 AM

Title: Found a little Bug in 4images session.php / useronline
Post by: IcEcReaM on February 16, 2006, 12:56:04 AM

Found a little Bug in 4images.

It's not very critical, just if you use an non-standard user table fields.
Then the user online won't be showed.

Fix:
Search this line in includes/session.php
Code: [Select]
if ($row['session_user_id'] != GUEST && (isset($row['user_id']) && $row['user_id'] != GUEST)) {
and replace it with
Code: [Select]
if ($row['session_user_id'] != GUEST && (isset($row[$user_table_fields['user_id']]) && $row[$user_table_fields['user_id']] != GUEST)) {
Title: Re: Found a little Bug in 4images session.php / useronline
Post by: V@no on February 16, 2006, 01:45:00 AM
Thanks. Its forwarded to Jan's "to do" list ;)