Code Duplication    Length = 3-3 lines in 2 locations

main/inc/lib/api.lib.php 2 locations

@@ 5142-5144 (lines=3) @@
5139
                        "".(!empty($row['comment']) ? "'".$row['comment']."'" : "NULL").",".(!empty($row['scope']) ? "'".$row['scope']."'" : "NULL")."," .
5140
                        "".(!empty($row['subkeytext'])?"'".$row['subkeytext']."'":"NULL").",$access_url)";
5141
                Database::query($insert);
5142
            } else { // Such a setting does not exist.
5143
                error_log(__FILE__.':'.__LINE__.': Attempting to update setting '.$var.' ('.$subvar.') which does not exist at all', 0);
5144
            }
5145
        } else {
5146
            // Other access url.
5147
            if (!empty($subvar)) {
@@ 5168-5170 (lines=3) @@
5165
                            "".(!empty($row['subkeytext']) ? "'".$row['subkeytext']."'" : "NULL").",$access_url,".$row['access_url_changeable'].")";
5166
                    Database::query($insert);
5167
                }
5168
            } else { // Such a setting does not exist.
5169
                error_log(__FILE__.':'.__LINE__.': Attempting to update setting '.$var.' ('.$subvar.') which does not exist at all. The access_url is: '.$access_url.' ',0);
5170
            }
5171
        }
5172
    }
5173
}