Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: Feng-Shui commentedPatch attached
Comment #2
bleen CreditAttribution: 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