File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change 3434//* Check permissions for module
3535$ app ->auth ->check_module_permissions ('monitor ' );
3636
37- $ type = $ app ->functions ->intval ($ _GET ['type ' ]);
38- if ($ type == "batch " ) {
37+ if ($ _GET ['type ' ] == "batch " ) {
3938 $ loglevel = $ app ->functions ->intval ($ _GET ['loglevel ' ]);
40- $ app ->db ->query ("UPDATE sys_log SET loglevel = 0 WHERE loglevel = ? " , $ loglevel );
39+ if ( $ loglevel >= 0 && $ loglevel <= 2 ) $ app ->db ->query ("UPDATE sys_log SET loglevel = 0 WHERE loglevel = ? " , $ loglevel );
4140} else {
4241 $ syslog_id = $ app ->functions ->intval ($ _GET ['id ' ]);
43- $ app ->db ->query ("UPDATE sys_log SET loglevel = 0 WHERE syslog_id = ? " , $ syslog_id );
42+ if ( $ syslog_id > 0 ) $ app ->db ->query ("UPDATE sys_log SET loglevel = 0 WHERE syslog_id = ? " , $ syslog_id );
4443}
4544
4645header ('Location: log_list.php ' );
4746exit ;
48-
49-
50- ?>
You can’t perform that action at this time.
0 commit comments