forked from Wavyzz/dolibarr
Clean code
This commit is contained in:
@@ -420,7 +420,7 @@ if ($mode == 'template' && $user->admin) {
|
||||
print '<td></td>';
|
||||
} else {
|
||||
print '<td>'.$printer->listprinterstemplates[$line]['name'].'</td>';
|
||||
print '<td>'.nl2br(htmlentities($printer->listprinterstemplates[$line]['template'])).'</td>';
|
||||
print '<td>'.dol_htmlentitiesbr($printer->listprinterstemplates[$line]['template']).'</td>';
|
||||
// edit icon
|
||||
print '<td><a class="editfielda paddingleftonly marginrightonly" href="'.$_SERVER['PHP_SELF'].'?mode=template&action=edittemplate&templateid='.$printer->listprinterstemplates[$line]['rowid'].'">';
|
||||
print img_picto($langs->trans("Edit"), 'edit');
|
||||
|
||||
@@ -103,8 +103,7 @@ function dol_json_encode($elements)
|
||||
*/
|
||||
function _val($val)
|
||||
{
|
||||
if (is_string($val))
|
||||
{
|
||||
if (is_string($val)) {
|
||||
// STRINGS ARE EXPECTED TO BE IN ASCII OR UTF-8 FORMAT
|
||||
$ascii = '';
|
||||
$strlen_var = strlen($val);
|
||||
|
||||
Reference in New Issue
Block a user