Code Duplication    Length = 3-3 lines in 2 locations

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

@@ 5163-5165 (lines=3) @@
5160
                        "".(!empty($row['comment']) ? "'".$row['comment']."'" : "NULL").",".(!empty($row['scope']) ? "'".$row['scope']."'" : "NULL")."," .
5161
                        "".(!empty($row['subkeytext'])?"'".$row['subkeytext']."'":"NULL").",$access_url)";
5162
                Database::query($insert);
5163
            } else { // Such a setting does not exist.
5164
                error_log(__FILE__.':'.__LINE__.': Attempting to update setting '.$var.' ('.$subvar.') which does not exist at all', 0);
5165
            }
5166
        } else {
5167
            // Other access url.
5168
            if (!empty($subvar)) {
@@ 5189-5191 (lines=3) @@
5186
                            "".(!empty($row['subkeytext']) ? "'".$row['subkeytext']."'" : "NULL").",$access_url,".$row['access_url_changeable'].")";
5187
                    Database::query($insert);
5188
                }
5189
            } else { // Such a setting does not exist.
5190
                error_log(__FILE__.':'.__LINE__.': Attempting to update setting '.$var.' ('.$subvar.') which does not exist at all. The access_url is: '.$access_url.' ',0);
5191
            }
5192
        }
5193
    }
5194
}