From 7ccb1c94a15ec94d1cae77b78c9929dcba6ec725 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Thu, 13 Jan 2022 19:07:05 +0100 Subject: [PATCH] Fix var not defined --- htdocs/api/class/api_setup.class.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/htdocs/api/class/api_setup.class.php b/htdocs/api/class/api_setup.class.php index d169c8220ec..15a29c0e18b 100644 --- a/htdocs/api/class/api_setup.class.php +++ b/htdocs/api/class/api_setup.class.php @@ -1734,6 +1734,8 @@ class Setup extends DolibarrApi { $list = array(); + $limit = 0; + $sql = "SELECT e.rowid, e.rowid as ref, e.label, e.address, e.zip, e.town, e.status"; $sql .= " FROM ".MAIN_DB_PREFIX."establishment as e"; $sql .= " WHERE e.entity IN (".getEntity('establishment').')';