From 1307d0708e8116ad5e5524d311cddeca44a895f8 Mon Sep 17 00:00:00 2001 From: rvelices Date: Wed, 2 May 2012 20:24:28 +0000 Subject: feature 2601: Allow searching by ip in admin history also remove php warnings when tags zere deleted after visits git-svn-id: http://piwigo.org/svn/trunk@14688 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/include/functions_history.inc.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'admin/include/functions_history.inc.php') diff --git a/admin/include/functions_history.inc.php b/admin/include/functions_history.inc.php index 49c9f9d14..911546125 100644 --- a/admin/include/functions_history.inc.php +++ b/admin/include/functions_history.inc.php @@ -137,6 +137,11 @@ SELECT ); } } + + if (isset($search['fields']['ip'])) + { + $clauses[] = 'IP LIKE "'.$search['fields']['ip'].'"'; + } $clauses = prepend_append_array_items($clauses, '(', ')'); -- cgit v1.2.3