Followup r97138 - could not reproduce myself
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Mon, 3 Oct 2011 03:35:18 +0000 (03:35 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Mon, 3 Oct 2011 03:35:18 +0000 (03:35 +0000)
includes/logging/LogFormatter.php

index 40cedbc..40f8783 100644 (file)
@@ -378,7 +378,7 @@ class DeleteLogFormatter extends LogFormatter {
                if ( in_array( $subtype, array( 'event', 'revision' ) ) ) {
                        if (
                                ($subtype === 'event' && count( $params ) === 6 ) ||
-                               ($subtype === 'revision' && $params[3] === 'revision' )
+                               ($subtype === 'revision' && isset( $params[3] ) && $params[3] === 'revision' )
                        ) {
                                $paramStart = $subtype === 'revision' ? 4 : 3;