Download & Extend

Undefined return value at casetracker_case_state_save()

Project:Case Tracker
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

After running tests there were 6 warnings with the following message:

Undefined variable: result Notice casetracker.module 642 casetracker_case_state_save()

This occurs because casetracker_case_state_save() returns a non defined variable (which luckily is not expected by the caller). Removing that return statement makes tests pass without any warnings.

Comments

#1

Status:active» needs review

Here is a patch that fixes warnings.

AttachmentSize
casetracker-remove-useless-return-1714476-1.patch 807 bytes
nobody click here