mirror of
https://github.com/VTECRM/vtenext.git
synced 2026-02-26 16:18:47 +00:00
19 lines
366 B
PHP
19 lines
366 B
PHP
<?php
|
|
global $adb, $table_prefix;
|
|
|
|
// crmv@155560
|
|
|
|
// fix wrongly html-encoded names
|
|
$res = $adb->query(
|
|
"SELECT setype FROM {$table_prefix}_entity_displayname
|
|
WHERE displayname LIKE '%&%'
|
|
GROUP BY setype"
|
|
);
|
|
if ($res) {
|
|
$ENU = EntityNameUtils::getInstance();
|
|
while ($row = $adb->fetchByAssoc($res, -1, false)) {
|
|
$ENU->rebuildForModule($row['setype']);
|
|
}
|
|
}
|
|
|