php notices in textsize module

greggles - October 9, 2008 - 16:42
Project:Text Size
Version:6.x-1.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:closed
Description

I got php notices when running this module and have attached a patch to fix them. I'm not sure about removing "session_start()". Perhaps that is only necessary for anonymous users in which case it could be wrapped in a "global $user; if (!$user->uid){ }" kind of logic.

To see the notices you will need to enable full error reporting. One way to do that is just to use a Drupal-6.x-dev tarball.

AttachmentSize
notices_textsize.patch1.3 KB

#1

Christian Zwahlen - February 1, 2009 - 23:27
Status:needs review» fixed

Fixed in the 6.x-1.0 release.

#2

greggles - February 2, 2009 - 03:44
Status:fixed» needs review

Thanks!

I was trying to review the changes. I don't see the return $ouput; fix. Nor is the $output variable initialized earlier in the file. I think it could use some more help.

#3

Christian Zwahlen - February 2, 2009 - 12:45
Status:needs review» fixed

Yes, sorry. But now.

#4

greggles - February 2, 2009 - 15:55

Thanks, it would also be nice for your commit messages to follow the standard format: http://drupal.org/node/52287

#5

System Message - February 16, 2009 - 16:00
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.