Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Extra test for safety against $form.

  • Loading branch information...
commit 235731eb52775d4c106498f9b19ee2a4253764b9 1 parent 5e4fb75
@jamiemccarthy jamiemccarthy authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 Slash/DB/MySQL/MySQL.pm
View
4 Slash/DB/MySQL/MySQL.pm
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.