Skip to content
Snippets Groups Projects
Commit 34429613 authored by Matt Trefilek's avatar Matt Trefilek
Browse files

switch reasons and valid

parent 94fb0cfb
No related branches found
No related tags found
1 merge request!6switch reasons and valid
...@@ -26,12 +26,12 @@ class RpcNetidStructValidationResponse { ...@@ -26,12 +26,12 @@ class RpcNetidStructValidationResponse {
*/ */
function __construct( $isValid, $reasons ) { function __construct( $isValid, $reasons ) {
if(gettype($reasons) == "array") { if(gettype($reasons) == "array") {
$this->setIsValid( $isValid ); $this->setReasons( $reasons );;
} else { } else {
$this->setIsValid(array( $isValid) ); $this->setReasons( array($reasons) );;
} }
$this->setReasons( $reasons ); $this->setIsValid( $isValid );
} }
/** /**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment