Deleting a comment causes a crash

infojunkie - October 2, 2007 - 13:46
Project:Case Tracker
Version:5.x-1.1
Component:Code
Category:bug report
Priority:normal
Assigned:zero2one
Status:closed
Description

* Install CaseTracker Mail module
* Create a new node of any type
* Delete this node
RESULT: Crash saying "Fatal error: Cannot use object of type stdClass as array in /var/www/tawasol/modules/casetracker/casetracker_mail.module on line 115"

On casetracker_mail.module, changing line 115 from

db_query('DELETE FROM {casetracker_mail} WHERE cid = %d', $comment['cid']);

to
db_query('DELETE FROM {casetracker_mail} WHERE cid = %d', $comment->cid);

seems to solve the problem.

#1

zero2one - October 25, 2007 - 08:10
Assigned to:Anonymous» zero2one
Status:active» fixed

Is fixed in http://drupal.org/cvs?commit=85845

#2

Anonymous - November 12, 2007 - 22:42
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.