Aparently, it need not only be defined but *initialized* to make the warnings go...
authorDaniel Cannon <amidaniel@users.mediawiki.org>
Fri, 1 Jun 2007 09:11:52 +0000 (09:11 +0000)
committerDaniel Cannon <amidaniel@users.mediawiki.org>
Fri, 1 Jun 2007 09:11:52 +0000 (09:11 +0000)
includes/OutputPage.php

index 99d681f..f243392 100644 (file)
@@ -793,7 +793,7 @@ class OutputPage {
                }
 
                //If it's a range block, get the range in CIDR and hand it back.
-               $ipRange;
+               $ipRange = '';
                if ($wgUser->mBlock->mRangeStart != $wgUser->mBlock->mRangeEnd) {
                        $ipRange = $wgUser->mBlock->mAddress;
                }