E_STRICT tweaks for three extensions:

* Strict Standards: Undefined index:  blank in extensions/Cite/Cite.php on line 280
* Strict Standards: Assigning the return value of new by reference is deprecated in extensions/Makesysop/SpecialMakesysop_body.php on line 364
* Strict Standards: Undefined index:  style in extensions/CategoryTree/CategoryTree.php on line 123
* Strict Standards: Undefined index:  mode in extensions/CategoryTree/CategoryTree.php on line 125
* Strict Standards: Undefined index:  hideroot in extensions/CategoryTree/CategoryTree.php on line 137
This commit is contained in:
Nick Jenkins 2006-11-29 13:06:21 +00:00
parent 3770663bac
commit 75b86d229b

View file

@ -120,9 +120,9 @@ function efCategoryTreeParserHook( $cat, $argv, &$parser ) {
static $initialized = false;
$divAttribs = Sanitizer::validateTagAttributes( $argv, 'div' );
$style = @$divAttribs['style'];
$style = isset( $divAttribs['style'] ) ? $divAttribs['style'] : null;
$mode= @$argv[ 'mode' ];
$mode = isset( $argv[ 'mode' ] ) ? $argv[ 'mode' ] : null;
if ( $mode !== NULL ) {
$mode= trim( strtolower( $mode ) );
@ -134,7 +134,7 @@ function efCategoryTreeParserHook( $cat, $argv, &$parser ) {
$mode = CT_MODE_CATEGORIES;
}
$hideroot = @$argv[ 'hideroot' ];
$hideroot = isset( $argv[ 'hideroot' ] ) ? $argv[ 'hideroot' ] : null;
if ( $hideroot !== NULL ) {
$hideroot = trim( strtolower( $hideroot ) );