Skip to content
This repository was archived by the owner on Dec 16, 2020. It is now read-only.

Commit 117bb96

Browse files
committed
fix notEmpty -> notBlank
1 parent 081ae26 commit 117bb96

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Model/Logmail.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ public function __construct($id = false, $table = null, $ds = null) {
2424
parent::__construct($id, $table, $ds);
2525
$this->validate = array(
2626
'from' => array(
27-
'notempty' => array('rule' => array('notempty'), 'required' => true, 'allowEmpty' => false, 'message' => __('Please enter a Sender', true))),
27+
'notempty' => array('rule' => array('notBlank'), 'required' => true, 'allowEmpty' => false, 'message' => __('Please enter a Sender', true))),
2828
'to' => array(
29-
'notempty' => array('rule' => array('notempty'), 'required' => true, 'allowEmpty' => false, 'message' => __('Please enter a Recipient', true))),
29+
'notempty' => array('rule' => array('notBlank'), 'required' => true, 'allowEmpty' => false, 'message' => __('Please enter a Recipient', true))),
3030
);
3131
}
3232

@@ -130,7 +130,7 @@ public function validateAndDelete($id = null, $data = array()) {
130130
$data['Logmail']['id'] = $id;
131131
$tmp = $this->validate;
132132
$this->validate = array(
133-
'id' => array('rule' => 'notEmpty'),
133+
'id' => array('rule' => 'notBlank'),
134134
'confirm' => array('rule' => '[1]'));
135135

136136
$this->set($data);

0 commit comments

Comments
 (0)