FIX you should prefer "elseif" than "else if"
This commit is contained in:
parent
daa940d75b
commit
fd393218d3
@ -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';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user