Commit f9482712 authored by Mike Hibler's avatar Mike Hibler

Oops...misinterpreted the return value of NodeAttribute in my previous

commit.
parent 8e931f52
......@@ -1244,7 +1244,7 @@ sub default_osid($;$) {
my ($self,$stuff) = @_;
my $val = undef;
if (NodeAttribute($self, "default_osid", \$val) == 0) {
if (NodeAttribute($self, "default_osid", \$val) == 0 && defined($val)) {
return $val;
}
return NodeTypeInfo($self)->default_osid($stuff);
......@@ -1254,7 +1254,7 @@ sub default_imageid($;$) {
my ($self,$stuff) = @_;
my $val = undef;
if (NodeAttribute($self, "default_imageid", \$val) == 0) {
if (NodeAttribute($self, "default_imageid", \$val) == 0 && defined($val)) {
return $val;
}
return NodeTypeInfo($self)->default_imageid($stuff);
......
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