Index: trunk/phase3/includes/specials/SpecialVersion.php |
— | — | @@ -238,7 +238,8 @@ |
239 | 239 | $swWhereIsLine = explode( "\n", $swWhereIsInfo, 2); |
240 | 240 | $swWhereIsFirstLine = $swWhereIsLine[0]; |
241 | 241 | $swWhereIsBinPath = explode( ' ', $swWhereIsFirstLine, 3); |
242 | | - $wBinPath = dirname( $swWhereIsBinPath[1] ); |
| 242 | + if ( count( $swWhereIsBinPath ) > 1 ) |
| 243 | + $wBinPath = dirname( $swWhereIsBinPath[1] ); |
243 | 244 | } |
244 | 245 | if ( file_exists( $binPath . $swMathCmd ) || file_exists( $wBinPath . $swMathCmd ) ) { |
245 | 246 | $swMathInfo = self::execOutput( $swMathCmd . ' ' . $swMathParam[$swMath] ); |