(bug 38148) Fix E_WARNING in ChangesList.php line 1218
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Tue, 3 Jul 2012 17:46:53 +0000 (19:46 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Tue, 3 Jul 2012 17:46:53 +0000 (19:46 +0200)
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

includes/ChangesList.php

index da56050..dd183d6 100644 (file)
@@ -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);