Skip to content
Snippets Groups Projects
Commit abe76708 authored by Cédric Salvador's avatar Cédric Salvador
Browse files

renamed object_exists

parent e7f7dd49
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment