1
0
Fork 0
mirror of https://github.com/perlbot/perlbuut synced 2025-06-07 19:26:05 -04:00

minor test patch to see if i can't fix a macro issue

This commit is contained in:
Ryan Voots 2010-03-12 14:08:24 -05:00
parent af3280e753
commit a0cbaf877f

View file

@ -454,11 +454,11 @@ sub _db_get_protect {
sub _db_get_fact {
my( $self, $subj, $name ) = @_;
my( $self, $subj, $name, $func ) = @_;
my $dbh = $self->dbh;
my $fact = $dbh->selectrow_hashref( "
SELECT factoid_id, subject, copula, predicate, author, modified_time, compose_macro, protected
SELECT factoid_id, subject, copula, predicate, author, modified_time, compose_macro, protected, original_subject
FROM factoid
WHERE original_subject = ?
ORDER BY factoid_id DESC
@ -467,7 +467,15 @@ sub _db_get_fact {
$subj,
);
return $fact;
if ($func && (!$fact->{compose_macro}))
{
return undef;
}
else
{
return $fact;
}
}
sub basic_get_fact {