pari: branch 2.0 r4353 - /branches/2.0/config/js/welcome2.js
SVN commits to the Asterisk-GUI project
asterisk-gui-commits at lists.digium.com
Mon Dec 15 15:20:14 CST 2008
Author: pari
Date: Mon Dec 15 15:20:13 2008
New Revision: 4353
URL: http://svn.digium.com/view/asterisk-gui?view=rev&rev=4353
Log:
Fix error : 'chan[5] is undefined'
Modified:
branches/2.0/config/js/welcome2.js
Modified: branches/2.0/config/js/welcome2.js
URL: http://svn.digium.com/view/asterisk-gui/branches/2.0/config/js/welcome2.js?view=diff&rev=4353&r1=4352&r2=4353
==============================================================================
--- branches/2.0/config/js/welcome2.js (original)
+++ branches/2.0/config/js/welcome2.js Mon Dec 15 15:20:13 2008
@@ -469,7 +469,7 @@
/* 0. Channel 1. Context 2. Extension 3. Prio 4. State
* 5. Application 6. Data 7. CallerID 8. <blank> 9. AccountCode
* 10. Duration 10. BridgedTo */
- if (chan[5].toLowerCase() != 'meetme') {
+ if ( chan.length < 6 || chan[5].toLowerCase() != 'meetme') {
continue;
}
More information about the asterisk-gui-commits
mailing list