mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 01:28:19 +01:00
fix list of event unformize code
This commit is contained in:
@@ -1865,7 +1865,11 @@ function dolGetElementUrl($objectid,$objecttype,$withpicto=0,$option='')
|
||||
{
|
||||
$object = new $classname($db);
|
||||
$res=$object->fetch($objectid);
|
||||
if ($res > 0) $ret=$object->getNomUrl($withpicto,$option);
|
||||
if ($res > 0) {
|
||||
$ret=$object->getNomUrl($withpicto,$option);
|
||||
} elseif($res==0) {
|
||||
$ret=$langs->trans('Deleted');
|
||||
}
|
||||
unset($object);
|
||||
}
|
||||
else dol_syslog("Class with classname ".$classname." is unknown even after the include", LOG_ERR);
|
||||
|
||||
Reference in New Issue
Block a user