Index: branches/RL2/extensions/Gadgets/Gadgets.hooks.php |
— | — | @@ -298,8 +298,8 @@ |
299 | 299 | array( |
300 | 300 | 'type' => 'multiselect', |
301 | 301 | //'options' => array(), // TODO: Maybe fill in stuff anyway? The backend may need that |
302 | | - 'options' => array_combine( explode( '|', $GLOBALS['wgRequest']->getVal( 'ryanscrewedchadover' ) ), |
303 | | - explode( '|', $GLOBALS['wgRequest']->getVal( 'ryanscrewedchadover2' ) ) ), |
| 302 | + 'options' => $GLOBALS['wgRequest']->getCheck( 'ryanscrewedchadover' ) ? array_combine( explode( '|', $GLOBALS['wgRequest']->getVal( 'ryanscrewedchadover' ) ), |
| 303 | + explode( '|', $GLOBALS['wgRequest']->getVal( 'ryanscrewedchadover2' ) ) ) : array(), |
304 | 304 | 'section' => 'gadgets-shared', |
305 | 305 | 'label' => ' ', |
306 | 306 | 'prefix' => 'gadget-', |