Fix scrutinizer
This commit is contained in:
parent
31de16d305
commit
a48a8231a1
@ -770,11 +770,12 @@ class FormCompany extends Form
|
|||||||
* @param string $morecss Add more css to select component
|
* @param string $morecss Add more css to select component
|
||||||
* @param int $output 0=return HTML, 1= direct print
|
* @param int $output 0=return HTML, 1= direct print
|
||||||
* @param int $forcehidetooltip Force hide tooltip for admin
|
* @param int $forcehidetooltip Force hide tooltip for admin
|
||||||
* @return void
|
* @return string|void Depending on $output param, return the HTML select list (recommended method) or nothing
|
||||||
*/
|
*/
|
||||||
public function selectTypeContact($object, $selected, $htmlname = 'type', $source = 'internal', $sortorder = 'position', $showempty = 0, $morecss = '', $output = 1, $forcehidetooltip = 0)
|
public function selectTypeContact($object, $selected, $htmlname = 'type', $source = 'internal', $sortorder = 'position', $showempty = 0, $morecss = '', $output = 1, $forcehidetooltip = 0)
|
||||||
{
|
{
|
||||||
global $user, $langs;
|
global $user, $langs;
|
||||||
|
|
||||||
$out = '';
|
$out = '';
|
||||||
if (is_object($object) && method_exists($object, 'liste_type_contact')) {
|
if (is_object($object) && method_exists($object, 'liste_type_contact')) {
|
||||||
$lesTypes = $object->liste_type_contact($source, $sortorder, 0, 1);
|
$lesTypes = $object->liste_type_contact($source, $sortorder, 0, 1);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user