This is a follow up from this issue https://www.drupal.org/project/shariff/issues/3129454 to apply the patch provided by @rwam to fix:
but the submitted patch leads to the following notice now:
Notice: Undefined index: shariff_default_settings in _shariff_get_settings() (line 144 of /…/modules/contrib/shariff/shariff.moduleUsing isset() solves this for me. See attached patch.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 3184255-php-notice-5.patch | 597 bytes | mathilde_dumond |
| #5 | 3184255-interdiff-2-5.txt | 604 bytes | mathilde_dumond |
| #2 | 3184255-1-php-notice.patch | 598 bytes | mathilde_dumond |
Comments
Comment #2
mathilde_dumond commentedComment #3
johnchqueComment #4
berdirI'm not sure if !isset() is the same thing, what are the possible values of shariff_default_settings.
Both TRUE and FALSE would evaluate to FALSE here, only NULL would be TRUE.
empty() might make more sense here, FALSE/0/NULL/'' would all result in TRUE while basically any other value would be FALSE.
Comment #5
mathilde_dumond commentedComment #6
berdirComment #9
granik