Changeset 6207

Show
Ignore:
Timestamp:
07/26/08 22:08:12 (1 month ago)
Author:
p_lindheimer
Message:

closes #2955 check if file exists first

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.5/disa/functions.inc.php

    r6178 r6207  
    5555                                // 
    5656                                $filename = "/etc/asterisk/disa-".$item['disa_id'].".conf"; 
    57                                 unlink($filename); 
     57                                if (file_exists($filename)) { 
     58                                        unlink($filename); 
     59                                } 
    5860                                if (isset($item['pin']) && !empty($item['pin']) && (strtolower($item['pin']) != 'no-password')) { 
    5961                                        // Create the disa-$id.conf file 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads