Skip to content

Commit

Permalink
Using new cross-db sql_isnotempty() function. MDL-12084
Browse files Browse the repository at this point in the history
Backporte from HEAD
  • Loading branch information
stronk7 committed Dec 7, 2007
1 parent ac1b88e commit 1b2335b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mod/quiz/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ function quiz_has_feedback($quizid) {
static $cache = array();
if (!array_key_exists($quizid, $cache)) {
$cache[$quizid] = record_exists_select('quiz_feedback',
"quizid = $quizid AND feedbacktext <> ''");
"quizid = $quizid AND " . sql_isnotempty('quiz_feedback', 'feedbacktext', false, true));
}
return $cache[$quizid];
}
Expand Down

0 comments on commit 1b2335b

Please sign in to comment.