Fix phpcs
This commit is contained in:
parent
93a2edd8d9
commit
0af5c9ae91
@ -3663,6 +3663,7 @@ abstract class CommonObject
|
||||
|
||||
/**
|
||||
* Function used to get an array with all items linked to an object id in association table
|
||||
*
|
||||
* @param int $fk_object_where id of object we need to get linked items
|
||||
* @param string $field_select name of field we need to get a list
|
||||
* @param string $field_where name of field of object we need to get linked items
|
||||
@ -3671,7 +3672,7 @@ abstract class CommonObject
|
||||
*/
|
||||
static public function getAllItemsLinkedByObjectID($fk_object_where, $field_select, $field_where, $table_element)
|
||||
{
|
||||
if(empty($fk_object_where) || empty($field_where) || empty($table_element)) return -1;
|
||||
if (empty($fk_object_where) || empty($field_where) || empty($table_element)) return -1;
|
||||
|
||||
global $db;
|
||||
|
||||
@ -3686,11 +3687,11 @@ abstract class CommonObject
|
||||
}
|
||||
|
||||
return $TRes;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Function used to remove all items linked to an object id in association table
|
||||
*
|
||||
* @param int $fk_object_where id of object we need to remove linked items
|
||||
* @param string $field_where name of field of object we need to delete linked items
|
||||
* @param string $table_element name of association table
|
||||
@ -3698,7 +3699,7 @@ abstract class CommonObject
|
||||
*/
|
||||
static public function deleteAllItemsLinkedByObjectID($fk_object_where, $field_where, $table_element)
|
||||
{
|
||||
if(empty($fk_object_where) || empty($field_where) || empty($table_element)) return -1;
|
||||
if (empty($fk_object_where) || empty($field_where) || empty($table_element)) return -1;
|
||||
|
||||
global $db;
|
||||
|
||||
@ -3708,7 +3709,6 @@ abstract class CommonObject
|
||||
if (empty($resql)) return 0;
|
||||
|
||||
return 1;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
Reference in New Issue
Block a user