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

Contact/Storage, Set $grants by default as an empty array #65

Merged
merged 1 commit into from
Mar 6, 2019

Conversation

asig2016
Copy link
Contributor

@asig2016 asig2016 commented Mar 6, 2019

When you call:

$ui = new addressbook_ui();
$groups = $ui->get_addressbooks(Acl::ADD);

in the settings hook of a custom application you get the following warning during setup "install all applications":

2019/03/06 07:50:58 [error] 1276#1276: *279 FastCGI sent in stderr: "PHP message: PHP Warning: Invalid argument supplied for foreach() in /home/asig/dev/egw/egwdev2/html/egw/api/src/Contacts.php on line 373
PHP message: #1 /home/asig/dev/egw/egwdev2/html/egw/actele/inc/class.actele_hooks.inc.php(63): EGroupware\Api\Contacts->get_addressbooks(2)
PHP message: #2 /home/asig/dev/egw/egwdev2/html/egw/api/src/loader/deprecated_factory.php(179): actele_hooks::settings(Array)
PHP message: #3 /home/asig/dev/egw/egwdev2/html/egw/setup/inc/class.setup.inc.php(719): ExecMethod('actele_hooks::s...', Array)
PHP message: #4 /home/asig/dev/egw/egwdev2/html/egw/setup/inc/class.setup_process.inc.php(432): setup->set_default_preferences('actele')
PHP message: #5 /home/asig/dev/egw/egwdev2/html/egw/setup/inc/class.setup_process.inc.php(147): setup_process->current(Array, NULL)
PHP message: #6 /home/asig/dev/egw/egwdev2/html/egw/setup/index.php(349): setup_process->pass(Array, 'new', NULL, NULL)
PHP message: #7 {main}

@ralfbecker ralfbecker merged commit 5ea2381 into EGroupware:master Mar 6, 2019
@ralfbecker
Copy link
Member

Thanks Alexandros :)

@asig2016 asig2016 deleted the master_fix2 branch March 6, 2019 08:55
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

Successfully merging this pull request may close these issues.

2 participants