Code Duplication    Length = 3-3 lines in 2 locations

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

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