http://www.mediawiki.org/wiki/Special:Code/MediaWiki/96649
Revision: 96649
Author: nikerabbit
Date: 2011-09-09 08:04:18 +0000 (Fri, 09 Sep 2011)
Log Message:
-----------
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
Modified Paths:
--------------
trunk/phase3/includes/logging/LogEntry.php
Modified: trunk/phase3/includes/logging/LogEntry.php
===================================================================
--- trunk/phase3/includes/logging/LogEntry.php 2011-09-09 07:28:11 UTC (rev
96648)
+++ trunk/phase3/includes/logging/LogEntry.php 2011-09-09 08:04:18 UTC (rev
96649)
@@ -215,7 +215,7 @@
$this->params = $params;
$this->legacy = false;
} else {
- $this->params = explode( "\n", $blob );
+ $this->params = $blob === '' ? array()
: explode( "\n", $blob );
$this->legacy = true;
}
}
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs