Needs work
Project:
Mobile Codes
Version:
6.x-2.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Oct 2011 at 22:54 UTC
Updated:
30 Jul 2012 at 15:12 UTC
Jump to comment: Most recent file
First, thanks for mobile codes, great module!
There are some PHP Notices being generated for several of the includes.:
Notice: Undefined property: stdClass::$disabled in mobile_codes/includes/filefield.inc on line 13
Notice: Undefined property: stdClass::$disabled in mobile_codes/includes/text.inc on line 13
etc.
It's the common PHP issue of attempting to check the value of a variable that is not set, the patch below checks that the variale is set before it is checked.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1303746_includes_php_notices.patch | 5.41 KB | feng-shui |
Comments
Comment #1
feng-shui commentedPatch attached
Comment #2
bleen commentedThis will not work correctly if $preet->disabled is not set. In that case, the assumption is that the object is NOT disabled, yet the if statement will resolve to FALSE and the code inside it will never get fired off