From cac57f5cd8e543e77cd49232653b5fd2dec9e54b Mon Sep 17 00:00:00 2001 From: Sarjuuk Date: Thu, 17 Dec 2020 23:00:59 +0100 Subject: [PATCH] Spell/DetailPage * fixed recursing SmartAI ActionLists for used-by relations --- pages/spell.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/spell.php b/pages/spell.php index 0ab08030..0767325d 100644 --- a/pages/spell.php +++ b/pages/spell.php @@ -2261,7 +2261,7 @@ class SpellPage extends GenericPage if ($_ = DB::World()->selectCol('SELECT entryOrGUID FROM smart_scripts WHERE entryOrGUID > 0 AND source_type = ?d AND action_type IN (?a) AND (action_param1 IN (?a) OR action_param2 IN (?a) OR action_param3 IN (?a) OR action_param4 IN (?a) OR action_param5 IN (?a) OR action_param6 IN (?a))', $src, SAI_ACTION_ALL_TIMED_ACTION_LISTS, $talIds, $talIds, $talIds, $talIds, $talIds, $talIds)) $ids = $_; - $smartS = array_diff($smartS, $tal); + $smartS = array_diff_key($smartS, $tal); } if ($smartS); $ids = array_merge($ids, array_column($smartS, 'entryOrGUID'));