diff options
Diffstat (limited to 'skins/default/pngbehavior.htc')
-rw-r--r-- | skins/default/pngbehavior.htc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/skins/default/pngbehavior.htc b/skins/default/pngbehavior.htc index 24bfd4c79..f19aad33e 100644 --- a/skins/default/pngbehavior.htc +++ b/skins/default/pngbehavior.htc @@ -3,7 +3,7 @@ <script> var supported = /MSIE (5\.5)|[6789]/.test(navigator.userAgent) && navigator.platform == "Win32"; -var realSrc; +var realSrc = null; var blankSrc = "skins/default/images/blank.gif"; if (supported) fixImage(); @@ -35,7 +35,7 @@ function fixImage() { } // test for png - if ( /\.png$/.test( realSrc.toLowerCase() ) ) { + if ( realSrc && /\.png$/.test( realSrc.toLowerCase() ) ) { // set blank image element.src = blankSrc; // set filter |