Use isset instead of defined. Fix BUG #963397
authorJens Frank <jeluf@users.mediawiki.org>
Mon, 31 May 2004 07:56:44 +0000 (07:56 +0000)
committerJens Frank <jeluf@users.mediawiki.org>
Mon, 31 May 2004 07:56:44 +0000 (07:56 +0000)
includes/Skin.php

index fcee456..a0ce7a8 100644 (file)
@@ -1908,7 +1908,7 @@ class Skin {
 
        function makeMediaLinkObj( $nt, $alt = "" )
        {
-               if ( ! defined( $nt ) )
+               if ( ! isset( $nt ) )
                {
                        ### HOTFIX. Instead of breaking, return empry string.
                        $s = $alt;