Closed (fixed)
Project:
Legal
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Apr 2012 at 10:30 UTC
Updated:
28 Jul 2012 at 01:51 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
itz_andr3 commentedI try to debug, this is my first time debuging drupal
$legal_accountis empty when user not accepted any T&C yet,so
$legal_account['version']and$legal_account['revision']daon't have any valuethis causing error.
Question:
- why error message only showed in admin? is the warning message hidden on original user?
- can isset($legal_account['version']) check used for skipping this error? i try this can worked out
so the code would become:
need review
Comment #2
seworthi commentedThe above solution worked great. I did remove a few if/else with this:
Comment #3
Anonymous (not verified) commentedSeworthi's solution works. I've created the same compact code independently 15 minutes ago. The only difference of my code was to use array_key_exists(), because this is all needed to avoid the PHP notice. It's just a bit more accurate.
Please find the patch against latest dev version attached.
Comment #4
robert castelo commentedPatch #3 committed to dev.
Comment #5.0
(not verified) commentedtranslate to english