Skip to content

Commit

Permalink
check value and prevent NULLs before inserting into firehose_setting_log
Browse files Browse the repository at this point in the history
  • Loading branch information
tvroom committed Apr 15, 2008
1 parent b09eebb commit 14cbe7c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions plugins/FireHose/FireHose.pm
Expand Up @@ -2743,6 +2743,9 @@ sub createUpdateLog {
sub createSettingLog {
my($self, $data) = @_;
return if !getCurrentStatic("firehose_logging");
return if !$data->{name};

$data->{value} ||= "";
$data->{uid} ||= getCurrentUser('uid');
$self->sqlInsert("firehose_setting_log", $data);
}
Expand Down

0 comments on commit 14cbe7c

Please sign in to comment.