From abe76708de0d8610b6ff14e14c69756981c2466e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Salvador?= Date: Fri, 10 Jan 2014 11:06:16 +0100 Subject: [PATCH] renamed object_exists --- htdocs/categories/class/categorie.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/categories/class/categorie.class.php b/htdocs/categories/class/categorie.class.php index 1a68fc93999..3040ed3176c 100644 --- a/htdocs/categories/class/categorie.class.php +++ b/htdocs/categories/class/categorie.class.php @@ -578,7 +578,7 @@ class Categorie * @param int $object_id id of the object to search * @return int nb number of occurrences */ - function object_exists($field, $category_table, $object_id) + function is_in_cat($field, $category_table, $object_id) { $sql = "SELECT COUNT(*) as nb FROM " . MAIN_DB_PREFIX . "categorie_" . $category_table; $sql .= " WHERE fk_categorie = " . $this->id . " AND fk_" . $field . " = " . $object_id;