Skip to content
Snippets Groups Projects
Commit 509ccfed authored by epaule's avatar epaule
Browse files

in case the $object is not an object but an int ... // some small change to store_on

parent 858c3d6d
No related branches found
No related tags found
No related merge requests found
......@@ -113,7 +113,12 @@ sub store_on_ {
my $object_id;
if($type =~ /[GT][er][na][en]/){
$object_id = $object->dbID;
if (!ref($object)){
$object_id = $object;
}
else {
$object_id = $object->dbID;
}
$table = lc($type);
# $type = lc($type);
}
......
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