Changeset 9985

Show
Ignore:
Timestamp:
06/28/10 21:37:10 (3 years ago)
Author:
p_lindheimer
Message:

fixes #4386 don't generate an orphaned basetag if no extenions exists, fail at that point instead

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • freepbx/branches/2.8/amp_conf/htdocs/admin/extensions.class.php

    r9834 r9985  
    150150      $basetag = '1'; 
    151151      // we'll be defining a new pri "1", so change existing "1" to "n" 
     152      if (!isset($this->_exts[$section][$extension][0])) { 
     153        die_freepbx("died in splice $section $extension"); 
     154      } 
    152155      $this->_exts[$section][$extension][0]['basetag'] = 'n'; 
    153156    } else {