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