X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep306.php;h=9dc886a10bea22481318af64bae8e8ac0e9f1ae6;hb=b14f304532b7d124e79ee2a03d60a0850c8a417d;hp=3ce3a86025bd49314d54a4d5a60f706e7f390300;hpb=6351305b2b0e5782804ab4d9e3db5f84b671d6f2;p=fa-stable.git diff --git a/reporting/rep306.php b/reporting/rep306.php index 3ce3a860..9dc886a1 100644 --- a/reporting/rep306.php +++ b/reporting/rep306.php @@ -85,10 +85,7 @@ function get_supp_inv_reference($supplier_id, $stock_id, $date) 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] : ''; } //----------------------------------------------------------------------------------------------------