twilio/OpenVBX — Issue #183: Minor code fix - Conditional variable definition
Author: ivanrame
Created: 2011-11-30 23:37:55+00:00
State: open

Hi!
I was modifying Dial applet to disable whisper and I see there's a conditional definition in function callOpts() (file TwimlDial, dial plugin), variable $opts, which is not defined if it doesn't enter the conditional (and returns that variable anyways).
This is not really a bug right now (b/c it is supposed that whispering is enabled), but could be in the future. Probably you should pre-set the variable, or add an 'else' statement.
Best,
Iván