1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

- Fix notice warning in getFormat() call

This commit is contained in:
Pav Lucistnik 2006-04-11 15:08:24 +00:00
parent 6adecac2a8
commit 70efc4cd40
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=159334
2 changed files with 12 additions and 0 deletions

View File

@ -7,6 +7,7 @@
PORTNAME= Spreadsheet_Excel_Writer
PORTVERSION= 0.9.0
PORTREVISION= 1
CATEGORIES= textproc www pear
MAINTAINER= pav@FreeBSD.org

View File

@ -0,0 +1,11 @@
--- Writer/Worksheet.php.orig Sat Nov 19 14:47:01 2005
+++ Writer/Worksheet.php Tue Apr 11 17:06:18 2006
@@ -1230,7 +1230,7 @@
*/
function _XF(&$format)
{
- if ($format != 0) {
+ if (is_object($format)) {
return($format->getXfIndex());
} else {
return(0x0F);