Changeset 378


Ignore:
Timestamp:
07/05/10 10:58:15 (10 years ago)
Author:
sander
Message:

Do not recursively delete if no root path is set

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/www/app/models/request.php

    r372 r378  
    465465        { 
    466466                $this->deleteJobs(); 
    467                 $root = FILES . $this->field('root'); 
    468                 $Folder = new Folder($root); 
    469                 $Folder->delete(); 
     467                $root = $this->field('root'); 
     468                if ($root) { 
     469                        $Folder = new Folder(FILES . $root); 
     470                        $Folder->delete(); 
     471                } 
    470472        } 
    471473 
Note: See TracChangeset for help on using the changeset viewer.