| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 67 | public function reminder_due($date) |
||
| 68 | { |
||
| 69 | $has_date = ($date != '0'); |
||
| 70 | |||
| 71 | if ( ! $has_date) |
||
| 72 | { |
||
| 73 | $this->CI->form_validation->set_message('validate', 'You must set a due date in order to get a reminder.'); |
||
| 74 | } |
||
| 75 | |||
| 76 | return $has_date; |
||
| 77 | } |
||
| 78 | } |
||
| 79 | // End of libraries/Validation_callbacks.php |