[Vtigercrm-commits] [vtiger-commits] r5113 - in /vtigercrm/branches/4.2/modules: Invoice/CreatePDF.php Orders/CreatePDF.php Orders/CreateSOPDF.php Quotes/CreatePDF.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Apr 13 17:25:35 EDT 2006
Author: allanbush
Date: Thu Apr 13 15:25:30 2006
New Revision: 5113
Log:
Added inital condition check before looping through the parts list. Closes #96.
Modified:
vtigercrm/branches/4.2/modules/Invoice/CreatePDF.php
vtigercrm/branches/4.2/modules/Orders/CreatePDF.php
vtigercrm/branches/4.2/modules/Orders/CreateSOPDF.php
vtigercrm/branches/4.2/modules/Quotes/CreatePDF.php
Modified: vtigercrm/branches/4.2/modules/Invoice/CreatePDF.php
==============================================================================
--- vtigercrm/branches/4.2/modules/Invoice/CreatePDF.php (original)
+++ vtigercrm/branches/4.2/modules/Invoice/CreatePDF.php Thu Apr 13 15:25:30 2006
@@ -372,7 +372,7 @@
$this->SetFont('');
//Data
$fill=0;
- foreach($ivData as $key=>$value)
+ if($ivData) foreach($ivData as $key=>$value)
{
$this->Cell(38,6,$value['productname'],0,0,'L',0);
$this->Cell(38,6,$value['qty'],0,0,'L',0);
Modified: vtigercrm/branches/4.2/modules/Orders/CreatePDF.php
==============================================================================
--- vtigercrm/branches/4.2/modules/Orders/CreatePDF.php (original)
+++ vtigercrm/branches/4.2/modules/Orders/CreatePDF.php Thu Apr 13 15:25:30 2006
@@ -373,7 +373,7 @@
$this->SetFont('');
//Data
$fill=0;
- foreach($ivData as $key=>$value)
+ if($ivData) foreach($ivData as $key=>$value)
{
$this->Cell(38,6,$value['productname'],0,0,'L',0);
$this->Cell(38,6,$value['qty'],0,0,'L',0);
Modified: vtigercrm/branches/4.2/modules/Orders/CreateSOPDF.php
==============================================================================
--- vtigercrm/branches/4.2/modules/Orders/CreateSOPDF.php (original)
+++ vtigercrm/branches/4.2/modules/Orders/CreateSOPDF.php Thu Apr 13 15:25:30 2006
@@ -374,7 +374,7 @@
$this->SetFont('');
//Data
$fill=0;
- foreach($ivData as $key=>$value)
+ if($ivData) foreach($ivData as $key=>$value)
{
$this->Cell(38,6,$value['productname'],0,0,'L',0);
$this->Cell(38,6,$value['qty'],0,0,'L',0);
Modified: vtigercrm/branches/4.2/modules/Quotes/CreatePDF.php
==============================================================================
--- vtigercrm/branches/4.2/modules/Quotes/CreatePDF.php (original)
+++ vtigercrm/branches/4.2/modules/Quotes/CreatePDF.php Thu Apr 13 15:25:30 2006
@@ -350,7 +350,7 @@
$this->SetFont('');
//Data
$fill=0;
- foreach($ivData as $key=>$value)
+ if($ivData) foreach($ivData as $key=>$value)
{
$this->Cell(38,6,$value['productname'],0,0,'L',0);
$this->Cell(38,6,$value['qty'],0,0,'L',0);
More information about the vtigercrm-commits
mailing list