removed triggered_messages
This commit is contained in:
parent
941332372e
commit
9c7fc786e2
|
@ -190,8 +190,7 @@ checks<br>
|
|||
*/<br>
|
||||
<span style="font-weight: bold;">function</span> <span
|
||||
style="color: rgb(255, 0, 0);">process_attributes</span>($post) {<br>
|
||||
$this->triggered_messages =
|
||||
array();<br>
|
||||
$errors = array();<br>
|
||||
|
||||
$this->attributes['macAddress'] = array();<br>
|
||||
// check old MACs<br>
|
||||
|
@ -216,8 +215,8 @@ $this->messages['mac'][0];<br>
|
|||
$message[] =
|
||||
$post['macAddress' . $i];<br>
|
||||
|
||||
|
||||
$this->triggered_messages[] = array($message);<br>
|
||||
$errors[] =
|
||||
array($message);<br>
|
||||
|
||||
}<br>
|
||||
|
||||
|
@ -245,25 +244,13 @@ $this->messages['mac'][0];<br>
|
|||
|
||||
$message[] = $post['macAddress'];<br>
|
||||
|
||||
$this->triggered_messages[] =
|
||||
array($message);<br>
|
||||
$errors[] = array($message);<br>
|
||||
}<br>
|
||||
}<br>
|
||||
|
||||
$this->attributes['macAddress'] =
|
||||
array_unique($this->attributes['macAddress']);<br>
|
||||
if
|
||||
(sizeof($this->triggered_messages) > 0) {<br>
|
||||
|
||||
$this->inputCorrect = false;<br>
|
||||
return
|
||||
$this->triggered_messages;<br>
|
||||
}<br>
|
||||
else {<br>
|
||||
|
||||
$this->inputCorrect = true;<br>
|
||||
return 0;<br>
|
||||
}<br>
|
||||
return $errors;<br>
|
||||
}<br>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
Loading…
Reference in New Issue