Skip to content

Commit

Permalink
Issue - last commit broke detection of 'event' and 'type' keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
jjrom committed Jul 16, 2015
1 parent c4120c6 commit 47066a2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions include/resto/RestoDictionary.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,10 @@ public function getKeyword($name, $types, $similarity = 100) {
*/
foreach(array_keys($this->dictionary['keywords']) as $currentType) {
if (isset($types)) {
if ($types[0] === RestoDictionary::NOLOCATION && $this->isLocationType($currentType)) {
continue;
if ($types[0] === RestoDictionary::NOLOCATION) {
if ($this->isLocationType($currentType)) {
continue;
}
}
else {
if (!in_array($currentType, $types)) {
Expand Down

0 comments on commit 47066a2

Please sign in to comment.