This should fix regression reported in r96545
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Fri, 9 Sep 2011 08:04:18 +0000 (08:04 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Fri, 9 Sep 2011 08:04:18 +0000 (08:04 +0000)
Notice: Undefined offset: 1 in D:\www\MW_trunk\phase3\extensions\FlaggedRevs\dataclasses\FlaggedRevsLog.php on line 156

includes/logging/LogEntry.php

index f279ee5..315a0ca 100644 (file)
@@ -215,7 +215,7 @@ class DatabaseLogEntry extends LogEntryBase {
                                        $this->params = $params;
                                        $this->legacy = false;
                                } else {
-                                       $this->params = explode( "\n", $blob );
+                                       $this->params = $blob === '' ? array() : explode( "\n", $blob );
                                        $this->legacy = true;
                                }
                        }