Followup r97138 - could not reproduce myself
[lhc/web/wiklou.git] / 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;