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

FreePBX 13 problem #9

Open
pnepus opened this issue Sep 18, 2017 · 1 comment
Open

FreePBX 13 problem #9

pnepus opened this issue Sep 18, 2017 · 1 comment

Comments

@pnepus
Copy link

pnepus commented Sep 18, 2017

Warning: Invalid argument supplied for foreach () in /var/www/html/admin/modules/dialplaninjection/functions.inc.php on line 169

https://translate.google.com/translate?hl=en&sl=auto&tl=en&u=http%3A%2F%2Fwww.asterisk-france.org%2Farchive%2Findex.php%2Ft-317.html

fixed functions.inc.php

if (! empty ($labels))
{

foreach ($labels as $label) {
$extens[] = array('destination' => 'injection-'.$r[0].',${EXTEN},'.$label[0], 'description' => $r[1].'-'.$label[0]);
}
}

.
.
.
.
if (! empty ($cmdlist))
{

foreach ($cmdlist as $val) {
// $currentcomponent->addguielem('Commands', new gui_textbox('commands['.$val[0].']', $val[1], 'Command', 'This command will be injected into the dialplan.', '','', false),3);
$cmdtext .= $val[1]."\n";
}
}

@lgaetz
Copy link
Member

lgaetz commented Sep 18, 2017

This module has not been updated to work with FreePBX 13. Patches welcome.

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

2 participants