Strange behavior of surveys images.

Strange behavior of surveys images.

by John Black -
Number of replies: 2

Hi there, I have a problem with strange behavior while displaying survey's results. The graphs are correctly displayed in mozilla but not in Win IE.

Does anybody have similar problem?

Thnx 

Average of ratings: -
In reply to John Black

Re: Strange behavior of surveys images.

by John Black -

Problem solved. Patch included:

diff -rc ./moodle-1202/mod/survey/lib.php ./moodle/mod/survey/lib.php
*** ./moodle-1202/mod/survey/lib.php    2004-03-22 09:12:23.000000000 +0100
--- ./moodle/mod/survey/lib.php 2004-03-22 09:34:45.000000000 +0100
***************
*** 454,460 ****
          echo "(".get_string("gdneed").")";

      } else {
!         echo "<img height=\"$survey_gheight\" width=\"$survey_gwidth\" border=\"1\"".
               " src=\"$CFG->wwwroot/mod/survey/graph.php?$url\">";
      }
  }
--- 454,460 ----
          echo "(".get_string("gdneed").")";

      } else {
!         echo "<img height=\"$SURVEY_GHEIGHT\" width=\"$SURVEY_GWIDTH\" border=\"1\"".
               " src=\"$CFG->wwwroot/mod/survey/graph.php?$url\">";
      }
  }

As you can see authors used lower-case of upper-case global variables. Dunno why Mozilla correctly displayes graphs, but IE not, but who cares. smile