From: Niklas Laxström Date: Fri, 9 Sep 2011 08:04:18 +0000 (+0000) Subject: This should fix regression reported in r96545 X-Git-Tag: 1.31.0-rc.0~27770 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=b8b5d5a69ba3bacd14c83cc8565360ffd87b69a7;p=lhc%2Fweb%2Fwiklou.git 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 --- 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; } }