4images Forum & Community

4images Help / Hilfe => Bug Fixes & Patches => Topic started by: V@no on February 16, 2006, 01:47:37 AM

Title: [1.7 / 1.7.1] Problem with who's online when integration to other software used
Post by: V@no on February 16, 2006, 01:47:37 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)) {