Back to top

Autore Topic: segnalazioe problema con IE  (Letto 1178 volte)

Offline alexred

  • Fuori controllo
  • *
  • Post: 25672
  • Sesso: Maschio
  • Esperto in ozio relaxed
    • Mostra profilo
segnalazioe problema con IE
« il: 24 Feb 2011, 14:28:34 »
ho ricevuto questa mail:
Citazione
Thank you for this excellent extension. I found a bug that appears when
run on Linux server and viewed with MS Internet Explorer. In (directory)
slideshow when you only have e.g. jpg files two empty pictures will be
shown.   I think it is PHP function “glob” that in certain platforms
returns an array with one empty item instead of an empty array.
I have made a fix for it after row 227 in mod_it_slideshow.php adding to
lines after the for loops:
// Adding png files to (directory) slideshow
$j=0;
for ($i = count($jpgimages); $i < count($jpgimages)+count($pngimages);
$i++) {
            if(strlen($pngimages[$j])>3) //Fix for glob bug
               $this->image[$i]=$pngimages[$j];
            $j=$j+1;
         }      
// Adding gif files to (directory) slideshow
$j=0;
for ($i = count($this->image); $i <
count($jpgimages)+count($pngimages)+count($gifimages); $i++) {
            if(strlen($gifimages[$j])>3) //Fix for glob bug
               $this->image[$i]=$gifimages[$j];
            $j=$j+1;
         }

/hans

da verificare di cosa si tratta e se è confermata la soluzione proposta.

 



Web Design Bolzano Kreatif