Commit 9a621e52 authored by Russ Fish's avatar Russ Fish

Bug fix: mtypes_array was filled differently here in the PHP version, use mtype_keys instead.

parent 09c4a7d3
......@@ -476,8 +476,8 @@ if (!$isadmin && defined($node_id)) {
while (my ($ntype) = $query_result->fetchrow_array()) {
$otypes{$ntype} = 1;
# Flag invalid node types.
foreach my $ntype (@mtypes_array) {
foreach my $ntype (@mtype_keys) {
$ntype =~ s/^mtype_//;
if (!exists($otypes{$ntype})) {
UserError("Node Types: Current image on $node_id".
" cannot run on node type $ntype");
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment