mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
MDL-17317 lets make Netbeans happy, it is not clever enough to detect undefined vars properly ;-)
This commit is contained in:
parent
12fab7081e
commit
3e51b51d05
@ -467,6 +467,8 @@ abstract class moodle_database {
|
||||
throw new dml_exception('invalidqueryparam', $a);
|
||||
}
|
||||
|
||||
$target_type = $allowed_types;
|
||||
|
||||
if ($type & $allowed_types) { // bitwise AND
|
||||
if ($count == count($params)) {
|
||||
if ($type == SQL_PARAMS_QM) {
|
||||
@ -477,9 +479,6 @@ abstract class moodle_database {
|
||||
}
|
||||
// needs some fixing or validation - there might be more params than needed
|
||||
$target_type = $type;
|
||||
|
||||
} else {
|
||||
$target_type = $allowed_types;
|
||||
}
|
||||
|
||||
if ($type == SQL_PARAMS_NAMED) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user