From b8b5d5a69ba3bacd14c83cc8565360ffd87b69a7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Fri, 9 Sep 2011 08:04:18 +0000 Subject: [PATCH] This should fix regression reported in r96545 Notice: Undefined offset: 1 in D:\www\MW_trunk\phase3\extensions\FlaggedRevs\dataclasses\FlaggedRevsLog.php on line 156 --- includes/logging/LogEntry.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/logging/LogEntry.php b/includes/logging/LogEntry.php index f279ee5349..315a0ca745 100644 --- a/includes/logging/LogEntry.php +++ b/includes/logging/LogEntry.php @@ -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; } } -- 2.20.1