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').')';