Changeset 392


Ignore:
Timestamp:
07/21/10 10:49:16 (11 years ago)
Author:
sander
Message:

Log when validator class cannot be found

File:
1 edited

Legend:

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

    r388 r392  
    6060                $this->read(); 
    6161                if (!($validator = $this->_getValidator())) { 
     62                        $this->log('Could not get validator class'); 
    6263                        return; 
    6364                } 
     
    111112                } 
    112113 
    113                 return new $className(); 
     114                $validator = new $className(); 
     115                return $validator; 
    114116        } 
    115117 
Note: See TracChangeset for help on using the changeset viewer.