mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-01-24 09:43:18 +01:00
FIX you should prefer "elseif" than "else if"
This commit is contained in:
@@ -49,7 +49,7 @@ if ($action=="getProducts") {
|
||||
echo json_encode($prods);
|
||||
}
|
||||
|
||||
else if ($action=="search") {
|
||||
elseif ($action=="search") {
|
||||
$sql = 'SELECT * FROM '.MAIN_DB_PREFIX.'product';
|
||||
$sql .= ' WHERE entity IN ('.getEntity('product').')';
|
||||
$sql .= ' AND tosell = 1';
|
||||
|
||||
Reference in New Issue
Block a user