cleanup: variable referenced without initialization
authorYuri Astrakhan <yuriastrakhan@gmail.com>
Mon, 11 Mar 2013 03:19:45 +0000 (23:19 -0400)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 15 May 2013 00:43:00 +0000 (00:43 +0000)
declared so that IDE knows how to use it and initialized

Change-Id: I4841fd3f03220f837c981951f07c1c21ddbd76af

img_auth.php

index 667a40a..eba81f3 100644 (file)
@@ -113,6 +113,8 @@ function wfImageAuthMain() {
        }
 
        // Run hook for extension authorization plugins
+       /** @var $result array */
+       $result = null;
        if ( !wfRunHooks( 'ImgAuthBeforeStream', array( &$title, &$path, &$name, &$result ) ) ) {
                wfForbidden( $result[0], $result[1], array_slice( $result, 2 ) );
                return;