Skip to content

Commit

Permalink
Adjust check to correspond with what is used in cofig
Browse files Browse the repository at this point in the history
  • Loading branch information
flack committed Sep 5, 2018
1 parent 29406f8 commit 4cde29c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/midgard/admin/asgard/schemadb.php
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -296,12 +296,12 @@ private function _add_longtext_field($key, $type)
]; ];
} }


private function _add_name_field($key, $name_obj) private function _add_name_field($key, midcom_core_dbaobject $name_obj)
{ {
$type_urlname_config = []; $type_urlname_config = [];
$allow_unclean_name_types = $this->_config->get('allow_unclean_names_for'); $allow_unclean_name_types = $this->_config->get('allow_unclean_names_for');
foreach ($allow_unclean_name_types as $allow_unclean_name_types_type) { foreach ($allow_unclean_name_types as $allow_unclean_name_types_type) {
if ($name_obj instanceof $allow_unclean_name_types_type) { if ($name_obj->__object instanceof $allow_unclean_name_types_type) {
$type_urlname_config['allow_unclean'] = true; $type_urlname_config['allow_unclean'] = true;
break; break;
} }
Expand Down

0 comments on commit 4cde29c

Please sign in to comment.