From: Aryeh Gregor Date: Thu, 21 Aug 2008 21:41:30 +0000 (+0000) Subject: Do not use PHP 5.2.0 functions in core, kthx. X-Git-Tag: 1.31.0-rc.0~45730 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=356e65521357948136002b81e656883d704efa7d;p=lhc%2Fweb%2Fwiklou.git Do not use PHP 5.2.0 functions in core, kthx. --- diff --git a/includes/Diff.php b/includes/Diff.php index 761fcece22..c1775d05f4 100644 --- a/includes/Diff.php +++ b/includes/Diff.php @@ -87,7 +87,11 @@ class WikiDiff3 { $this->from = $newFromIndex = $this->to = $newToIndex = array(); //remove tokens not in both sequences - $shared = array_fill_keys($from, false); + $shared = array(); + foreach( $from as $key ) { + $shared[$key] = false; + } + foreach($to as $index => &$el) { if(array_key_exists($el, $shared)) { //keep it