MDL-29378 Code cleanup in the Survey module
commit57c2052c20388e178bf0b548f90628de857bccb5
authorDavid Mudrák <david@moodle.com>
Wed, 4 Sep 2013 22:01:42 +0000 (5 00:01 +0200)
committerDavid Mudrák <david@moodle.com>
Wed, 4 Sep 2013 22:08:42 +0000 (5 00:08 +0200)
tree3054f33987e75f9fa79ea397e3f9df997ed42f92
parent7c51792932ae49741951f0816f4c546c42b33e92
MDL-29378 Code cleanup in the Survey module

While working on the issue, I spotted these two places that were worth of
fixing. The first one is a trivial reminiscence of a previous refactoring,
after which both branches of the if() statement became equal.

The second one is actually a typo as in theory it could generate unexpected
input fields with the name like qPP1. Luckily this never happened due to the
way how survey questions are hardcoded (there are no questions with the type 2
that would require two answers to their subquestions).
mod/survey/lib.php