Viewing 1 replies (of 1 total)
  • Thread Starter ZeroGravity

    (@zerogravity)

    This error is related to my previous post.

    ****************

    Line 158 in random-image-gallery-with-pretty-photo-zoom.php and line 36 in select-random-image.php checks twice for GIF images.
    if(strpos(strtoupper($file), ‘.JPG’) > 0 or strpos(strtoupper($file), ‘.GIF’) >0 or strpos(strtoupper($file), ‘.GIF’) > 0 )

    Should be
    if(strpos(strtoupper($file), ‘.JPG’) > 0 or strpos(strtoupper($file), ‘.GIF’) >0 or strpos(strtoupper($file), ‘.PNG’) > 0 )

Viewing 1 replies (of 1 total)
  • The topic ‘mt_rand(-1) error’ is closed to new replies.