mirror of
https://github.com/PHPOffice/PhpSpreadsheet.git
synced 2026-09-24 01:00:05 +00:00
Bugfix: Work item 15786 - RangeToArray strange array keys
and Minor performance tweak to the workbook setActiveSheetIndexByName() method git-svn-id: https://phpexcel.svn.codeplex.com/svn/trunk@72435 2327b42d-5241-43d6-9e2a-de5ac946f064
This commit is contained in:
@@ -379,7 +379,7 @@ class PHPExcel
|
||||
public function setActiveSheetIndexByName($pValue = '')
|
||||
{
|
||||
if (($worksheet = $this->getSheetByName($pValue)) instanceof PHPExcel_Worksheet) {
|
||||
$this->setActiveSheetIndex($worksheet->getParent()->getIndex($worksheet));
|
||||
$this->setActiveSheetIndex($this->getIndex($worksheet));
|
||||
return $worksheet;
|
||||
}
|
||||
|
||||
@@ -396,7 +396,7 @@ class PHPExcel
|
||||
$returnValue = array();
|
||||
$worksheetCount = $this->getSheetCount();
|
||||
for ($i = 0; $i < $worksheetCount; ++$i) {
|
||||
array_push($returnValue, $this->getSheet($i)->getTitle());
|
||||
$returnValue[] = $this->getSheet($i)->getTitle();
|
||||
}
|
||||
|
||||
return $returnValue;
|
||||
|
||||
Reference in New Issue
Block a user