http://www.mediawiki.org/wiki/Special:Code/MediaWiki/89911

Revision: 89911
Author:   yaron
Date:     2011-06-12 02:51:53 +0000 (Sun, 12 Jun 2011)
Log Message:
-----------
Follow-up to r89910 - added in necessary check

Modified Paths:
--------------
    trunk/extensions/SemanticForms/includes/SF_FormInputs.php

Modified: trunk/extensions/SemanticForms/includes/SF_FormInputs.php
===================================================================
--- trunk/extensions/SemanticForms/includes/SF_FormInputs.php   2011-06-12 
02:35:52 UTC (rev 89910)
+++ trunk/extensions/SemanticForms/includes/SF_FormInputs.php   2011-06-12 
02:51:53 UTC (rev 89911)
@@ -483,7 +483,7 @@
                if ( ( $possible_values = $other_args['possible_values'] ) == 
null ) {
                        // If it's a Boolean property, display 'Yes' and 'No'
                        // as the values.
-                       if ( $other_args['property_type'] == '_boo' ) {
+                       if ( array_key_exists( 'property_type', $other_args ) 
&& $other_args['property_type'] == '_boo' ) {
                                $possible_values = array(
                                        SFUtils::getWordForYesOrNo( true ),
                                        SFUtils::getWordForYesOrNo( false ),


_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to