From: Alexandre Emsenhuber Date: Wed, 12 May 2010 20:01:11 +0000 (+0000) Subject: array_unshift() returns the count of elements in the array, not the array and thus... X-Git-Tag: 1.31.0-rc.0~36870 X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_add%27%29%20%7D%7D?a=commitdiff_plain;h=d0d1d60fbbf4bd8379daed2eb0dc30c3b618b5f6;p=lhc%2Fweb%2Fwiklou.git array_unshift() returns the count of elements in the array, not the array and thus this breaks when enabling extensions --- diff --git a/includes/installer/Installer.php b/includes/installer/Installer.php index d055e0e474..ac683361eb 100644 --- a/includes/installer/Installer.php +++ b/includes/installer/Installer.php @@ -826,7 +826,7 @@ abstract class Installer { $this->installSteps = array( 'localsettings' ); } if( count( $this->getVar( '_Extensions' ) ) ) { - $this->installSteps = array_unshift( $this->installSteps, 'extensions' ); + array_unshift( $this->installSteps, 'extensions' ); } return $this->installSteps; }