Rev 1116 | Rev 1206 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1116 | Rev 1171 | ||
---|---|---|---|
Line 58... | Line 58... | ||
58 | while ($row = $res->fetch_array()) { |
58 | while ($row = $res->fetch_array()) { |
59 | $severity = 0; |
59 | $severity = 0; |
60 | // --- |
60 | // --- |
61 | $users = array(); |
61 | $users = array(); |
62 | $res2 = OIDplus::db()->query("select username, severity from ###log_user ". |
62 | $res2 = OIDplus::db()->query("select username, severity from ###log_user ". |
63 | "where log_id = ?", array($row['id'])); |
63 | "where log_id = ?", array((int)$row['id'])); |
64 | while ($row2 = $res2->fetch_array()) { |
64 | while ($row2 = $res2->fetch_array()) { |
65 | $users[] = $row2['username']; |
65 | $users[] = $row2['username']; |
66 | if ($row2['username'] == 'admin') $severity = $row2['severity']; |
66 | if ($row2['username'] == 'admin') $severity = $row2['severity']; |
67 | } |
67 | } |
68 | $users = count($users) > 0 ? '; '._L('affected users: %1',implode(', ',$users)) : ''; |
68 | $users = count($users) > 0 ? '; '._L('affected users: %1',implode(', ',$users)) : ''; |
69 | // --- |
69 | // --- |
70 | $objects = array(); |
70 | $objects = array(); |
71 | $res2 = OIDplus::db()->query("select object, severity from ###log_object ". |
71 | $res2 = OIDplus::db()->query("select object, severity from ###log_object ". |
72 | "where log_id = ?", array($row['id'])); |
72 | "where log_id = ?", array((int)$row['id'])); |
73 | while ($row2 = $res2->fetch_array()) { |
73 | while ($row2 = $res2->fetch_array()) { |
74 | $objects[] = $row2['object']; |
74 | $objects[] = $row2['object']; |
75 | } |
75 | } |
76 | $objects = count($objects) > 0 ? '; '._L('affected objects: %1',implode(', ',$objects)) : ''; |
76 | $objects = count($objects) > 0 ? '; '._L('affected objects: %1',implode(', ',$objects)) : ''; |
77 | // --- |
77 | // --- |