]> git.wh0rd.org Git - tt-rss.git/commitdiff
attachments display: fix wrong type assignment
authorAndrew Dolgov <fox@madoka.spb.ru>
Sun, 3 Aug 2008 14:17:28 +0000 (15:17 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Sun, 3 Aug 2008 14:17:28 +0000 (15:17 +0100)
functions.php

index 4ae5aa08e7ea09df093f6236c159ff47dbc68643..5bb5ea3860fb03cf663482d0c661d8176339f3b6 100644 (file)
 
                                        $entry = ""; 
                                        
-                                       if (($ctype = __("audio/mpeg")) && 
+                                       if (($ctype == __("audio/mpeg")) && 
                                                (get_pref($link, "ENABLE_FLASH_PLAYER")) ) { 
                                        
                                                $entry .= "<object type=\"application/x-shockwave-flash\" data=\"extras/button/musicplayer.swf?song_url=$url\" width=\"17\" height=\"17\"> <param name=\"movie\" value=\"extras/button/musicplayer.swf?song_url=$url\" /> </object> ";
 
                                        $entry = ""; 
                                        
-                                       if (($ctype = __("audio/mpeg")) && 
+                                       if (($ctype == __("audio/mpeg")) && 
                                                (get_pref($link, "ENABLE_FLASH_PLAYER")) ) { 
                                                
                                                $entry .= "<object type=\"application/x-shockwave-flash\" data=\"extras/button/musicplayer.swf?song_url=$url\" width=\"17\" height=\"17\"> <param name=\"movie\" value=\"extras/button/musicplayer.swf?song_url=$url\" /> </object> ";