Browse Source

Fixing image resize in hotspot when image is a square

Julio Montoya 15 years ago
parent
commit
f5927a078e
1 changed files with 1 additions and 1 deletions
  1. 1 1
      main/exercice/hotspot.class.php

+ 1 - 1
main/exercice/hotspot.class.php

@@ -70,7 +70,7 @@ class HotSpot extends Question {
 			if (file_exists($picturePath.'/'.$this->picture)) { 
 				//list($width,$height) = @getimagesize($file_info['tmp_name']); does not work	
 				list($width,$height) = @getimagesize($picturePath.'/'.$this->picture);				
-				if($width>=$height) {
+				if($width>$height) {
 					$this->resizePicture('width',545);
 				} else {
 					$this->resizePicture('height',350);