Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 4987-4989 (lines=3) @@
4984
                        "".(!empty($row['comment']) ? "'".$row['comment']."'" : "NULL").",".(!empty($row['scope']) ? "'".$row['scope']."'" : "NULL")."," .
4985
                        "".(!empty($row['subkeytext'])?"'".$row['subkeytext']."'":"NULL").",$access_url)";
4986
                Database::query($insert);
4987
            } else { // Such a setting does not exist.
4988
                error_log(__FILE__.':'.__LINE__.': Attempting to update setting '.$var.' ('.$subvar.') which does not exist at all', 0);
4989
            }
4990
        } else {
4991
            // Other access url.
4992
            if (!empty($subvar)) {
@@ 5013-5015 (lines=3) @@
5010
                            "".(!empty($row['subkeytext']) ? "'".$row['subkeytext']."'" : "NULL").",$access_url,".$row['access_url_changeable'].")";
5011
                    Database::query($insert);
5012
                }
5013
            } else { // Such a setting does not exist.
5014
                error_log(__FILE__.':'.__LINE__.': Attempting to update setting '.$var.' ('.$subvar.') which does not exist at all. The access_url is: '.$access_url.' ',0);
5015
            }
5016
        }
5017
    }
5018
}