Skip to content
Snippets Groups Projects
Commit 46da2d23 authored by falcon's avatar falcon
Browse files

#824762 reported by fuzzy76: Fixed: E_ALL Compliance

parent 9e7f7690
No related branches found
No related tags found
No related merge requests found
......@@ -149,7 +149,7 @@ class MultichoiceQuestion extends QuizQuestion {
$ids_to_delete[] = $res_o->id;
}
for ($i = 0; is_array($this->node->alternatives[$i]); $i++) {
for ($i = 0; isset($this->node->alternatives[$i]); $i++) {
$short = $this->node->alternatives[$i];
if (drupal_strlen($this->node->alternatives[$i]['answer']) > 0) {
// If new alternative
......
......@@ -2813,9 +2813,9 @@ function _quiz_get_question_types() {
foreach ($to_return as $key => $value) {
$types[] = $key;
}
$sql = 'SELECT type, name, description
$sql = "SELECT type, name, description
FROM {node_type}
WHERE type IN ('. implode(', ', $types) . ')';
WHERE type IN ('". implode("', '", $types) . "')";
$res = db_query($sql, $types);
while ($res_o = db_fetch_object($res)) {
$to_return[$res_o->type]['name'] = check_plain($res_o->name);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment