From bcbe940ac003309fbc7efe2f6d8a2efc40c5cee0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Salvador?= Date: Mon, 10 Jun 2013 16:04:34 +0200 Subject: [PATCH] fixed SQL error when trying to generate an order without selecting any product line --- htdocs/product/stock/replenish.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/htdocs/product/stock/replenish.php b/htdocs/product/stock/replenish.php index 182de040300..a483e5dfa74 100644 --- a/htdocs/product/stock/replenish.php +++ b/htdocs/product/stock/replenish.php @@ -123,9 +123,9 @@ if($action == 'order'){ dol_print_error($db); dol_syslog("replenish.php: ".$error, LOG_ERROR); } + $db->free($resql); } } - $db->free($resql); //we now know how many orders we need and what lines they have $i = 0; $orders = array();