mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
PHP hashes are case sensitive. (#11151)
* PHP hashes are case sensitive. * Make naming consistent Co-authored-by: Tony Murray <murraytony@gmail.com>
This commit is contained in:
@@ -489,8 +489,8 @@ function delete_device($id)
|
||||
|
||||
$db_name = dbFetchCell('SELECT DATABASE()');
|
||||
foreach ($fields as $field) {
|
||||
foreach (dbFetch("SELECT table_name FROM information_schema.columns WHERE table_schema = ? AND column_name = ?", [$db_name, $field]) as $table) {
|
||||
$table = $table['table_name'];
|
||||
foreach (dbFetch("SELECT TABLE_NAME FROM information_schema.columns WHERE table_schema = ? AND column_name = ?", [$db_name, $field]) as $table) {
|
||||
$table = $table['TABLE_NAME'];
|
||||
$entries = (int) dbDelete($table, "`$field` = ?", array($id));
|
||||
if ($entries > 0 && $debug === true) {
|
||||
$ret .= "$field@$table = #$entries\n";
|
||||
|
||||
Reference in New Issue
Block a user