Download & Extend

Undefined values for anonymous users

Project:Webform
Version:6.x-2.2
Component:Code
Category:bug report
Priority:minor
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

At line 1091

<?php
theme
('webform_view_messages', $node, $teaser, $page, $submission_count, $limit_exceeded, $allowed_roles);
?>

$submission_count is not defined for anon. users.

Triggers a php notice for me

At line 2013

<?php
$replace
= array($user->name, $user->mail, variable_get('site_name', 'drupal'), format_date(time(), 'large'));
?>

$user->name and $user->mail are not defined for not logged-in users.

It only spawns a php notice: undefined property for stdClass for me.

Clearly this is only a minor issue if at all. I'm using CVS DRUPAL 6.6-dev.

Thanks

Comments

#1

Status:active» fixed

I believe these were fixed in #337578: 3 x undefined variable/index errors + coder style cleanup.

#2

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

nobody click here