aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2012-05-02 20:24:28 +0000
committerrvelices <rv-github@modusoptimus.com>2012-05-02 20:24:28 +0000
commit1307d0708e8116ad5e5524d311cddeca44a895f8 (patch)
tree62bb590e0b2d0ee8fb90d69534ce496f74b3c666 /admin/include
parentdb0d42395cf8ad824dda2c902f8bb77e50c63770 (diff)
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
Diffstat (limited to 'admin/include')
-rw-r--r--admin/include/functions_history.inc.php5
1 files changed, 5 insertions, 0 deletions
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, '(', ')');