Login   Register  
PHP Classes
elePHPant
Icontem

Small fix.

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      MS-Excel Stream Handler  >  All threads  >  Small fix.  >  (Un) Subscribe thread alerts  
Subject:Small fix.
Summary:Notice
Messages:2
Author:Dmitry Polushkin
Date:2005-11-24 12:31:50
Update:2009-10-16 03:40:35
 

  1. Small fix.   Reply  
Picture of Dmitry Polushkin
Dmitry Polushkin
2005-11-24 12:31:50
Notice and warning is bad. Set size = 0 between the lines:
function _xls_stream_write($data) {
and
if (is_array($data) && !empty($data))
.

The notice is always prints on screen is:
PHP Notice: Undefined variable: size in /path/to/excel.php on line 162

  2. Re: Small fix.   Reply  
Picture of Guilherme
Guilherme
2009-10-16 03:40:35 - In reply to message 1 from Dmitry Polushkin
The file excel.php will be the same like that:
(pt-BR o arquivo excel.php ficará assim)

function _xls_stream_write($data)
{
$size = 0;
if (is_array($data) && !empty($data))