From deea3599be4fee96d9bb2f403ae9f5f71a3daac4 Mon Sep 17 00:00:00 2001 From: Znote Date: Thu, 11 Jan 2018 23:12:17 +0100 Subject: [PATCH] spells.php TFS 0.3.6 compatibility. --- spells.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spells.php b/spells.php index 2a2f8df..fc45b72 100644 --- a/spells.php +++ b/spells.php @@ -50,6 +50,8 @@ if (user_logged_in() && is_admin($user_data)) { if ("$attributeName" == "name") { $vocId = vocation_name_to_id("$attributeValue"); $vocations[] = ($vocId !== false) ? $vocId : "$attributeValue"; + } elseif ("$attributeName" == "id") { + $vocations[] = (int)"$attributeValue"; } } }