X-Git-Url: https://mop.ddnsfree.com/gitweb/?p=brisk.git;a=blobdiff_plain;f=web%2FObj%2Fbrisk.phh;fp=web%2FObj%2Fbrisk.phh;h=4be9c87a8aec89633dd3172838297827b5310afd;hp=83620aa6134174ae13a7e1fd67e125f2e5284401;hb=65b3ab569e06032a81b52a88ae109757bedc1b97;hpb=9b49137ac5f0b02500bb00c952d1cff847a1ea55 diff --git a/web/Obj/brisk.phh b/web/Obj/brisk.phh index 83620aa..4be9c87 100644 --- a/web/Obj/brisk.phh +++ b/web/Obj/brisk.phh @@ -3354,9 +3354,9 @@ function log_legal($curtime, $addr, $user, $where, $mesg) if (($fp = @fopen(LEGAL_PATH."/legal.log", 'a')) != FALSE) { /* Unix time | session | nickname | IP | where was | mesg */ - fwrite($fp, sprintf("%ld|%s|%s|%s|%s|%s|%s|\n", $curtime, $user->sess, - ($user->is_auth() ? 'A' : 'N'), - $user->name, $addr, $where , $mesg)); + fwrite($fp, sprintf("%ld|%s|%s|%s|%s|%s|%s|\n", $curtime, ($user ? $user->sess : "NOSESS"), + ($user ? ($user->is_auth() ? 'A' : 'N') : "U"), + ($user ? $user->name : "NO-USER"), $addr, $where , $mesg)); fclose($fp); } }