Quantcast

AND ~= OR

Ackis [11-25-08 - 21:24]
AND ~= OR
Filename
ARLFrame.lua
diff --git a/ARLFrame.lua b/ARLFrame.lua
index 7590979..ed289ce 100644
--- a/ARLFrame.lua
+++ b/ARLFrame.lua
@@ -2400,7 +2400,7 @@ function addon.RecipeItem_OnClick(button)
 	addon:Print(button)

 	-- Don't do anything if they've clicked on an empty button
-	if (clickedIndex ~= nil) or (clickedIndex ~= 0) then
+	if (clickedIndex ~= nil) and (clickedIndex ~= 0) then

 		local isRecipe = DisplayStrings[clickedIndex].IsRecipe
 		local isExpanded = DisplayStrings[clickedIndex].IsExpanded