Whoops - typo!

This commit is contained in:
thepurpleblob
2005-06-10 13:25:23 +00:00
parent 4c71d8b215
commit d53839aa6d
+5 -3
View File
@@ -253,7 +253,8 @@ function display() {
/// Set up some variables
$inpopup = !empty($_GET["inpopup"]);
$inpopup_param = optional_param( 'inpopup','' );
$inpopup = !empty( $inpopup_param );
if (resource_is_url($resource->reference)) {
$fullurl = $resource->reference;
@@ -345,7 +346,8 @@ function display() {
/// Now check whether we need to display a frameset
if (empty($_GET['frameset']) and !$embedded and !$inpopup and $resource->options == "frame") {
$frameset = optional_param( 'frameset','' );
if (empty($frameset) and !$embedded and !$inpopup and ($resource->options == "frame")) {
echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Frameset//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd\">\n";
echo "<html dir=\"ltr\">\n";
echo '<head>';
@@ -371,7 +373,7 @@ function display() {
/// If we are in a frameset, just print the top of it
if (!empty($_GET['frameset']) and $_GET['frameset'] == "top") {
if (!empty( $frameset ) and ($frameset == "top") ) {
print_header($pagetitle, $course->fullname, "$this->navigation ".format_string($resource->name), "", "", true, update_module_button($cm->id, $course->id, $this->strresource), navmenu($course, $cm, "parent"));
$options->para = false;