From: Alexandre Emsenhuber Date: Tue, 3 Jul 2012 17:46:53 +0000 (+0200) Subject: (bug 38148) Fix E_WARNING in ChangesList.php line 1218 X-Git-Tag: 1.31.0-rc.0~23156^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=5b01c0c8674a982d987493cf4220884b873a2678;p=lhc%2Fweb%2Fwiklou.git (bug 38148) Fix E_WARNING in ChangesList.php line 1218 The error is PHP Warning: explode() expects parameter 2 to be string, array given in includes/ChangesList.php on line 1218. The problem is that $classes is always an array, so no need to explode() it. Change-Id: I6917273aecc6b9ddbf377e69ecbd343ee25fa8ef --- diff --git a/includes/ChangesList.php b/includes/ChangesList.php index da5605076e..dd183d646a 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -1215,7 +1215,6 @@ class EnhancedChangesList extends ChangesList { } # Tags - $classes = explode( ' ', $classes ); $this->insertTags( $r, $rcObj, $classes ); # Show how many people are watching this if enabled $r .= $this->numberofWatchingusers($rcObj->numberofWatchingusers);