Permalink
Browse files

Extra test for safety against $form.

  • Loading branch information...
1 parent 5e4fb75 commit 235731eb52775d4c106498f9b19ee2a4253764b9 @jamiemccarthy jamiemccarthy committed Sep 28, 2002
Showing with 3 additions and 1 deletion.
  1. +3 −1 Slash/DB/MySQL/MySQL.pm
View
@@ -1260,7 +1260,9 @@ sub createAccessLog {
my $section = $constants->{section};
# The following two are special cases
if ($op eq 'index' || $op eq 'article') {
- $section = $form->{section} ? $form->{section} : $constants->{section};
+ $section = ($form && $form->{section})
+ ? $form->{section}
+ : $constants->{section};
}
my $ipid = getCurrentUser('ipid') || md5_hex($hostip);

0 comments on commit 235731e

Please sign in to comment.