Closed (fixed)
Project:
Instapage
Version:
8.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
9 Dec 2020 at 10:20 UTC
Updated:
18 Feb 2021 at 12:54 UTC
Jump to comment: Most recent
Condition if (isset($result['error']) && $result->error) in SettingsForm.php line 73 will never be TRUE, because $result->error can't be called on an array.
Same thing with $result->error_message on line 74, where error_message doesn't exist as getAccountKeys method in case of an error returns array with 'error' and 'content' keys.
Correct the code in SettingsForm.php and add tests for this case.
Refers to the Issue 3100567.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #5
timotej-pl commentedComment #8
bcizej commentedThanks, commited.