Author Topic: Found a little Bug in 4images session.php / useronline  (Read 4896 times)

0 Members and 1 Guest are viewing this topic.

Offline IcEcReaM

  • Hero Member
  • *****
  • Posts: 714
    • View Profile
    • My little Testboard
Found a little Bug in 4images session.php / useronline
« 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)) {
Coding is a everlasting competition between programmers who tries to write larger, better and idiot-safe programs and the universe producing larger and stupider idiots...
...so far the universe won
bump

Offline V@no

  • If you don't tell me what to do, I won't tell you where you should go :)
  • Global Moderator
  • 4images Guru
  • *****
  • Posts: 17.849
  • mmm PHP...
    • View Profile
    • 4images MODs Demo
Re: Found a little Bug in 4images session.php / useronline
« Reply #1 on: February 16, 2006, 01:45:00 AM »
Thanks. Its forwarded to Jan's "to do" list ;)
Your first three "must do" before you ask a question:
Please do not PM me asking for help unless you've been specifically asked to do so. Such PMs will be deleted without answer. (forum rule #6)
Extension for Firefox/Thunderbird: Master Password+    Back/Forward History Tweaks (restartless)    Cookies Manager+    Fit Images (restartless for Thunderbird)