bastiam / php-excel-reader2

Automatically exported from code.google.com/p/php-excel-reader2
0 stars 0 forks source link

Undefined index: cellsInfo #11

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Downloaded class
2. Tried basic example
3.

What is the expected output? What do you see instead?
Excel dump

What version of the product are you using? On what operating system?
2.22 on Windows 7 / Wamp Server / PHP 5.3.0

Please provide any additional information below.

I get the following errors repeatedly:

Notice: Undefined index: cellsInfo in 
E:\wamp\www\nasilbiraraba\libraries\excel\excel_reader2.php  on line 637

Notice: Undefined index: in 
E:\wamp\www\project\libraries\excel\excel_reader2.php on line 532

Notice: Undefined index: in 
E:\wamp\www\project\libraries\excel\excel_reader2.php on line 535

Notice: Undefined index: in 
E:\wamp\www\project\libraries\excel\excel_reader2.php on line 538

Notice: Undefined index: in 
E:\wamp\www\project\libraries\excel\excel_reader2.php on line 541

Original issue reported on code.google.com by blockedm...@gmail.com on 25 Jul 2010 at 7:17

GoogleCodeExporter commented 8 years ago
Change line 532 - 535 - 538 - 541
   function borderLeftColor($row, $col, $sheet = 0) {
        return isset($this->colors[$this->xfProperty($row,$col,$sheet,'borderLeftColor')]) ? $this->colors[$this->xfProperty($row,$col,$sheet,'borderLeftColor')] : '';
    }
    function borderRightColor($row,$col,$sheet=0) {
        return isset($this->colors[$this->xfProperty($row,$col,$sheet,'borderRightColor')]) ? $this->colors[$this->xfProperty($row,$col,$sheet,'borderRightColor')] : '';
    }
    function borderTopColor($row, $col, $sheet = 0) {
        return isset($this->colors[$this->xfProperty($row,$col,$sheet,'borderTopColor')]) ? $this->colors[$this->xfProperty($row,$col,$sheet,'borderTopColor')] : '';
    }
    function borderBottomColor($row, $col, $sheet = 0) {
        return isset($this->colors[$this->xfProperty($row,$col,$sheet,'borderBottomColor')]) ? $this->colors[$this->xfProperty($row,$col,$sheet,'borderBottomColor')] : '';
    }

Original comment by revolt...@gmail.com on 18 Aug 2013 at 12:25

GoogleCodeExporter commented 8 years ago
Line 637
                if(!isset($this->sheets[$sheet]['cellsInfo'][$row][$col]['dontprint']) || !$this->sheets[$sheet]['cellsInfo'][$row][$col]['dontprint']) {

Original comment by revolt...@gmail.com on 18 Aug 2013 at 12:27