Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8a4928
)
rating MDL-23586 added intelligent handling if the user configures ratings in a non...
author
Andrew Davis
<andrew@affinitysoftware.net>
Mon, 9 Aug 2010 08:42:19 +0000
(08:42 +0000)
committer
Andrew Davis
<andrew@affinitysoftware.net>
Mon, 9 Aug 2010 08:42:19 +0000
(08:42 +0000)
lib/outputrenderers.php
patch
|
blob
|
blame
|
history
diff --git
a/lib/outputrenderers.php
b/lib/outputrenderers.php
index
11eb9d6
..
f25972a
100644
(file)
--- a/
lib/outputrenderers.php
+++ b/
lib/outputrenderers.php
@@
-1434,8
+1434,8
@@
class core_renderer extends renderer_base {
$scalearray = $rating->settings->scale->scaleitems;
if (!is_array($scalearray)) { //almost certainly a numerical scale
$intscalearray = intval($scalearray);//just in case they've passed "5" instead of 5
- if( is_int($intscalearray) && $intscalearray>0 ){
- $scalearray = array();
+ $scalearray = array();
+ if( is_int($intscalearray) && $intscalearray>0 ) {
for($i=0; $i<=$rating->settings->scale->scaleitems; $i++) {
$scalearray[$i] = $i;
}