Ingredients entered are always converted to lowercase. It would however be nice if they would be case preserving in case brand names or foreign languages (e.g. German) are used.

Comments

narres’s picture

A quick&dirty patch is to set

function _in_array($a, $b) {
  $a->name = trim($a->name);
  foreach($b as $row) {
    $compareto="";
    if (is_array($row)) {
      $compareto = trim($row["name"]);
    } else {
      $compareto = trim($row->name);
    }
    if ($a->name === $compareto)
      return true;
  }
  return false;
}

Just emmiting the lowercase();

By doing that "Salt" and "salt" are not just "salt" :)

green monkey’s picture

Status: Active » Closed (fixed)

closed on age - if still active - please resubmit