Rev 967 | Rev 969 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 967 | Rev 968 | ||
---|---|---|---|
Line 138... | Line 138... | ||
138 | $continue = true; |
138 | $continue = true; |
139 | break; |
139 | break; |
140 | } else { |
140 | } else { |
141 | $alts = OIDplusPagePublicObjects::getAlternativesForQuery($query); |
141 | $alts = OIDplusPagePublicObjects::getAlternativesForQuery($query); |
142 | foreach ($alts as $alt) { |
142 | foreach ($alts as $alt) { |
143 | if ($alt === $query) continue; // TODO: das soll getAlternativesForQuery machen! |
- | |
144 | $res = OIDplus::db()->query("select * from ###objects where id = ?", array($alt)); |
143 | $res = OIDplus::db()->query("select * from ###objects where id = ?", array($alt)); |
145 | if ($res->any()) { |
144 | if ($res->any()) { |
146 | $query = $alt; |
145 | $query = $alt; |
147 | $obj = OIDplusObject::parse($alt); |
146 | $obj = OIDplusObject::parse($alt); |
148 | if ($distance > 0) { |
147 | if ($distance > 0) { |