Changeset 1374

Show
Ignore:
Timestamp:
01/08/12 13:41:46 (18 months ago)
Author:
vakopian
Message:

make DateTime? setter null-safe. Refs #734

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • framework/branches/2.0/includes/qcubed/_core/base_controls/QDatepickerBoxBase.class.php

    r1364 r1374  
    107107                                        try { 
    108108                                                $this->dttDateTime = QType::Cast($mixValue, QType::DateTime); 
    109                                                 if ($this->dttDateTime->IsNull()) { 
     109                                                if ($this->dttDateTime && $this->dttDateTime->IsNull()) { 
    110110                                                        $this->dttDateTime = null; 
    111111                                                }