Module:Favilink Utility: Difference between revisions

error only using favilink id
mNo edit summary
(error only using favilink id)
Line 43: Line 43:
-- If there was a result, check if there were more than two found objects.
-- If there was a result, check if there were more than two found objects.
if resulttrue == 1 then
if resulttrue == 1 then
if #result > 1 then
if #result > 1 and searchtype == 'ObjectID' then
error("There was more than one result with that name![[Category:pages with favilink errors]]")
error("There was more than one result with that name![[Category:pages with favilink errors]]")
end
end