Skip to content

Commit

Permalink
Fix Dolibarr#25929 : warning undefined var
Browse files Browse the repository at this point in the history
  • Loading branch information
atm-maxime committed Sep 16, 2023
1 parent 5a7226f commit 3027f0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions htdocs/comm/propal/class/api_proposals.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -309,13 +309,13 @@ public function getLines($id, $sqlfilters = '')

if (!empty($sqlfilters)) {
$errormessage = '';
$sql = forgeSQLFromUniversalSearchCriteria($sqlfilters, $errormessage);
$filters = forgeSQLFromUniversalSearchCriteria($sqlfilters, $errormessage);
if ($errormessage) {
throw new RestException(400, 'Error when validating parameter sqlfilters -> '.$errormessage);
}
}

$this->propal->getLinesArray($sql);
$this->propal->getLinesArray($filters);
$result = array();
foreach ($this->propal->lines as $line) {
array_push($result, $this->_cleanObjectDatas($line));
Expand Down

0 comments on commit 3027f0f

Please sign in to comment.