Changeset 13843 for trunk/include
- Timestamp:
- Apr 1, 2012, 2:02:36 AM (12 years ago)
- Location:
- trunk/include
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/dblayer/functions_mysql.inc.php
r13038 r13843 371 371 $separator = $is_first ? '' : ",\n "; 372 372 373 if (isset($value) and $value != '')373 if (isset($value) and $value !== '') 374 374 { 375 375 $query.= $separator.$key.' = \''.$value.'\''; -
trunk/include/derivative.inc.php
r13489 r13843 56 56 if (!$this->size && isset($infos['width']) && isset($infos['height'])) 57 57 { 58 $this->size = array($infos['width'], $infos['height']); 58 $width = $infos['width']; 59 $height = $infos['height']; 60 61 // 1 or 5 => 90 clockwise 62 // 3 or 7 => 270 clockwise 63 if ($infos['rotation'] % 2 != 0) 64 { 65 $width = $infos['height']; 66 $height = $infos['width']; 67 } 68 69 $this->size = array($width, $height); 59 70 } 60 71 }
Note: See TracChangeset
for help on using the changeset viewer.