Skip to content

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

Merged
ralfbecker merged 1 commit into
EGroupware:masterfrom
asig2016:master_fix2
Mar 6, 2019
Merged

Contact/Storage, Set $grants by default as an empty array#65
ralfbecker merged 1 commit into
EGroupware:masterfrom
asig2016:master_fix2

Conversation

@asig2016

@asig2016 asig2016 commented Mar 6, 2019

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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