spells.php TFS 0.3.6 compatibility.

This commit is contained in:
Znote 2018-01-11 23:12:17 +01:00
parent c197b4de4f
commit deea3599be

View File

@ -50,6 +50,8 @@ if (user_logged_in() && is_admin($user_data)) {
if ("$attributeName" == "name") { if ("$attributeName" == "name") {
$vocId = vocation_name_to_id("$attributeValue"); $vocId = vocation_name_to_id("$attributeValue");
$vocations[] = ($vocId !== false) ? $vocId : "$attributeValue"; $vocations[] = ($vocId !== false) ? $vocId : "$attributeValue";
} elseif ("$attributeName" == "id") {
$vocations[] = (int)"$attributeValue";
} }
} }
} }