FIX you should prefer "elseif" than "else if"

This commit is contained in:
Regis Houssin 2019-03-14 17:07:49 +01:00
parent daa940d75b
commit fd393218d3

View File

@ -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';