From 8e872a324eec192f894470298a95aab4aca0816d Mon Sep 17 00:00:00 2001 From: remicollet Date: Wed, 10 Aug 2011 13:43:42 +0000 Subject: [PATCH] fix calls git-svn-id: https://forge.glpi-project.org/svn/example/trunk@165 349b9182-4a13-0410-896f-e5e9767dd1b3 --- hook.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hook.php b/hook.php index 752964a..4cf18b1 100644 --- a/hook.php +++ b/hook.php @@ -187,7 +187,7 @@ function plugin_example_addWhere($link,$nott,$type,$ID,$val) { $table = $searchopt[$ID]["table"]; $field = $searchopt[$ID]["field"]; - $SEARCH = makeTextSearch($val,$nott); + $SEARCH = Search::makeTextSearch($val,$nott); // Example of standard Where clause but use it ONLY for specific Where // No need of the function if you do not have specific cases @@ -212,7 +212,7 @@ function plugin_example_addHaving($link,$nott,$type,$ID,$val,$num) { $table = $searchopt[$ID]["table"]; $field = $searchopt[$ID]["field"]; - $SEARCH = makeTextSearch($val,$nott); + $SEARCH = Search::makeTextSearch($val,$nott); // Example of standard Having clause but use it ONLY for specific Having // No need of the function if you do not have specific cases