Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined Array Key warnings #26

Open
Plofkat opened this issue Nov 8, 2023 · 0 comments
Open

Undefined Array Key warnings #26

Plofkat opened this issue Nov 8, 2023 · 0 comments

Comments

@Plofkat
Copy link

Plofkat commented Nov 8, 2023

Added error handling to several lines (line numbers changed a bit as I was tinkering)
These seemed to only occur on tables that was not yet set up with displayAs()

Line 2090
Undefined array key warning

replace:
if ($this->category_required[$field] != TRUE){

with:

if (isset($this->category_required[$field]) && $this->category_required[$field] !== TRUE){

Line 1554
Undefined Array key

replace:

if ($this->displayAs_array[$field] != ''){

with:

if (isset($this->displayAs_array[$field]) && $this->displayAs_array[$field] != '') {

Line 1972
Undefined Array key

replace:

if ($this->displayAs_array[$field] != ''){

with:

if (isset($this->displayAs_array[$field]) && $this->displayAs_array[$field] != '') {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant