MDL-17317 lets make Netbeans happy, it is not clever enough to detect undefined vars properly ;-)

This commit is contained in:
skodak 2008-11-19 23:20:46 +00:00
parent 12fab7081e
commit 3e51b51d05

View File

@ -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) {