Permalink
Browse files

MDL-26704 Fixed up variable typo

  • Loading branch information...
1 parent faf0e91 commit 74cf2d00158a2c7ae2529f21787ea65e91c5d82d Sam Hemelryk committed May 18, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 mod/data/lib.php
  2. +1 −1 mod/forum/lib.php
  3. +1 −1 mod/glossary/lib.php
View
@@ -1424,7 +1424,7 @@ function data_rating_validate($params) {
throw new rating_exception('invalidnum');
} else if ($info->scale < 0) {
//its a custom scale
- $scalerecord = $DB->get_record('scale', array('id' => -$options->scaleid));
+ $scalerecord = $DB->get_record('scale', array('id' => -$params['scaleid']));
if ($scalerecord) {
$scalearray = explode(',', $scalerecord->scale);
if ($params['rating'] > count($scalearray)) {
View
@@ -3517,7 +3517,7 @@ function forum_rating_validate($params) {
throw new rating_exception('invalidnum');
} else if ($info->scale < 0) {
//its a custom scale
- $scalerecord = $DB->get_record('scale', array('id' => -$options->scaleid));
+ $scalerecord = $DB->get_record('scale', array('id' => -$params['scaleid']));
if ($scalerecord) {
$scalearray = explode(',', $scalerecord->scale);
if ($params['rating'] > count($scalearray)) {
@@ -530,7 +530,7 @@ function glossary_rating_validate($params) {
throw new rating_exception('invalidnum');
} else if ($info->scale < 0) {
//its a custom scale
- $scalerecord = $DB->get_record('scale', array('id' => -$options->scaleid));
+ $scalerecord = $DB->get_record('scale', array('id' => -$params['scaleid']));
if ($scalerecord) {
$scalearray = explode(',', $scalerecord->scale);
if ($params['rating'] > count($scalearray)) {

0 comments on commit 74cf2d0

Please sign in to comment.