Index: trunk/extensions/RecordAdmin/RecordAdmin_body.php |
— | — | @@ -62,7 +62,7 @@ |
63 | 63 | $records = array(); |
64 | 64 | $content = $editPage->getContent(); |
65 | 65 | foreach( self::examineBraces( $content ) as $brace ) { |
66 | | - if( $brace['DEPTH'] == 2 ) { |
| 66 | + if( array_key_exists( 'DEPTH', $brace ) && $brace['DEPTH'] == 2 ) { |
67 | 67 | $name = $brace['NAME']; |
68 | 68 | $form = Title::newFromText( $name, NS_FORM ); |
69 | 69 | if( is_object( $form ) && $form->exists() ) { |
Index: trunk/extensions/RecordAdmin/RecordAdmin.php |
— | — | @@ -10,7 +10,7 @@ |
11 | 11 | * @author Siebrand Mazeland |
12 | 12 | * @licence GNU General Public Licence 2.0 or later |
13 | 13 | */ |
14 | | -define( 'RECORDADMIN_VERSION', '1.2.1, 2011-03-27' ); |
| 14 | +define( 'RECORDADMIN_VERSION', '1.2.2, 2011-06-08' ); |
15 | 15 | |
16 | 16 | $dir = dirname( __FILE__ ) . '/'; |
17 | 17 | $wgExtensionMessagesFiles['RecordAdmin'] = $dir . 'RecordAdmin.i18n.php'; |