16 lines
412 B
PHP
Executable File
16 lines
412 B
PHP
Executable File
<?php
|
|
|
|
if (!function_exists('pdfmakerGetEntityName')) {
|
|
|
|
function pdfmakerGetEntityName($entityid)
|
|
{
|
|
|
|
$adb = PearDatabase::getInstance();
|
|
$result = $adb->pquery("SELECT setype FROM vtiger_crmentity WHERE crmid=?", array($entityid));
|
|
$row = $adb->fetchByAssoc($result);
|
|
$return = getEntityName($row['setype'], array($entityid));
|
|
return $return[$entityid];
|
|
}
|
|
|
|
}
|