diff options
author | msquare <msquare@notrademark.de> | 2016-09-30 18:49:33 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2016-09-30 18:49:33 +0200 |
commit | 6dfefc3bb9f054c472156801e37300059444ecc7 (patch) | |
tree | 1917fda87003323126b8d7312b3f54b31f27dee0 /includes/pages | |
parent | b87eb49b9324a56da723804e088415d52df77d77 (diff) |
small code improvements
Diffstat (limited to 'includes/pages')
-rw-r--r-- | includes/pages/admin_log.php | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/includes/pages/admin_log.php b/includes/pages/admin_log.php index 356a6402..d45a232b 100644 --- a/includes/pages/admin_log.php +++ b/includes/pages/admin_log.php @@ -5,13 +5,11 @@ function admin_log_title() { } function admin_log() { - if (isset($_POST['keyword'])) { - $filter = $_POST['keyword']; - $log_entries_source = LogEntries_filter($_POST['keyword']); - } else { - $filter = ""; - $log_entries_source = LogEntries(); + $filter = ""; + if (isset($_REQUEST['keyword'])) { + $filter = strip_request_item('keyword'); } + $log_entries_source = LogEntries_filter($_POST['keyword']); $log_entries = []; foreach ($log_entries_source as $log_entry) { |