Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 5157-5159 (lines=3) @@
5154
                        "".(!empty($row['comment']) ? "'".$row['comment']."'" : "NULL").",".(!empty($row['scope']) ? "'".$row['scope']."'" : "NULL")."," .
5155
                        "".(!empty($row['subkeytext'])?"'".$row['subkeytext']."'":"NULL").",$access_url)";
5156
                Database::query($insert);
5157
            } else { // Such a setting does not exist.
5158
                error_log(__FILE__.':'.__LINE__.': Attempting to update setting '.$var.' ('.$subvar.') which does not exist at all', 0);
5159
            }
5160
        } else {
5161
            // Other access url.
5162
            if (!empty($subvar)) {
@@ 5183-5185 (lines=3) @@
5180
                            "".(!empty($row['subkeytext']) ? "'".$row['subkeytext']."'" : "NULL").",$access_url,".$row['access_url_changeable'].")";
5181
                    Database::query($insert);
5182
                }
5183
            } else { // Such a setting does not exist.
5184
                error_log(__FILE__.':'.__LINE__.': Attempting to update setting '.$var.' ('.$subvar.') which does not exist at all. The access_url is: '.$access_url.' ',0);
5185
            }
5186
        }
5187
    }
5188
}