Code Duplication    Length = 3-3 lines in 2 locations

htdocs/lib2/rowEditor.class.php 2 locations

@@ 453-455 (lines=3) @@
450
        foreach ($this->pk as $k => $field) {
451
            if ($field['value'] === null) {
452
                $fWhere[] = 'ISNULL(`' . sql_escape($k) . '`)';
453
            } else {
454
                $fWhere[] = '`' . sql_escape($k) . '`=\'' . sql_escape($field['value']) . '\'';
455
            }
456
        }
457
458
        return join(' AND ', $fWhere);
@@ 692-694 (lines=3) @@
689
690
                if ($field['value'] === null) {
691
                    $sSet .= '`' . sql_escape($k) . '`=NULL';
692
                } else {
693
                    $sSet .= '`' . sql_escape($k) . '`=\'' . sql_escape($this->pFormatValueSql($field['type'], $field['value'])) . '\'';
694
                }
695
            }
696
        }
697