Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 5257-5259 (lines=3) @@
5254
                        "".(!empty($row['comment']) ? "'".$row['comment']."'" : "NULL").",".(!empty($row['scope']) ? "'".$row['scope']."'" : "NULL")."," .
5255
                        "".(!empty($row['subkeytext'])?"'".$row['subkeytext']."'":"NULL").",$access_url)";
5256
                Database::query($insert);
5257
            } else { // Such a setting does not exist.
5258
                error_log(__FILE__.':'.__LINE__.': Attempting to update setting '.$var.' ('.$subvar.') which does not exist at all', 0);
5259
            }
5260
        } else {
5261
            // Other access url.
5262
            if (!empty($subvar)) {
@@ 5283-5285 (lines=3) @@
5280
                            "".(!empty($row['subkeytext']) ? "'".$row['subkeytext']."'" : "NULL").",$access_url,".$row['access_url_changeable'].")";
5281
                    Database::query($insert);
5282
                }
5283
            } else { // Such a setting does not exist.
5284
                error_log(__FILE__.':'.__LINE__.': Attempting to update setting '.$var.' ('.$subvar.') which does not exist at all. The access_url is: '.$access_url.' ',0);
5285
            }
5286
        }
5287
    }
5288
}