MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
-$page_security = 'SA_SALESANALYTIC';
+$page_security = 'SA_SUPPLIERANALYTIC';
// ----------------------------------------------------------------
// $ Revision: 2.0 $
// Creator: Joe Hunt
AND trans.tran_date=".db_escape($date);
$result = db_query($sql,"No transactions were returned");
$row = db_fetch_row($result);
- if (isset($row[0]))
- return $row[0];
- else
- return '';
+ return is_array($row) ? $row[0] : '';
}
//----------------------------------------------------------------------------------------------------
$rep->NewLine();
$rep->NewLine();
$total_supp = $total_qty = 0.0;
- $supplier_name = $trans['supplier_name'];
+ $supplier_name = isset($trans['supplier_name']) ? $trans['supplier_name'] : "";
}
}
if ($supplier_name != '')