Merge #15886 - Fix crash when tablename or dbname is not set
Pull-request: #15886 I could not verify the crash but the fix was possible. Signed-off-by: William Desportes <williamdes@wdes.fr>
This commit is contained in:
commit
372973da5c
@ -917,10 +917,10 @@ class Tracker
|
||||
// we want to track
|
||||
$sql_query .=
|
||||
" WHERE FIND_IN_SET('" . $result['identifier'] . "',tracking) > 0" .
|
||||
" AND `db_name` = '" . $GLOBALS['dbi']->escapeString($dbname) . "' " .
|
||||
" AND `db_name` = '" . $GLOBALS['dbi']->escapeString($dbname ?? '') . "' " .
|
||||
" AND `table_name` = '"
|
||||
. $GLOBALS['dbi']->escapeString($result['tablename']) . "' " .
|
||||
" AND `version` = '" . $GLOBALS['dbi']->escapeString($version) . "' ";
|
||||
" AND `version` = '" . $GLOBALS['dbi']->escapeString($version ?? '') . "' ";
|
||||
|
||||
$relation->queryAsControlUser($sql_query);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user