Merged in bugfix/HOR-3765 (pull request #5998)

HOR-3765

Approved-by: Paula Quispe <paula.quispe@processmaker.com>
Approved-by: Julio Cesar Laura Avendaño <contact@julio-laura.com>
This commit is contained in:
David Callizaya
2017-08-22 18:59:45 +00:00
committed by Julio Cesar Laura Avendaño
2 changed files with 1 additions and 37 deletions

View File

@@ -26,42 +26,6 @@ class Net
}
}
/**
* This function is the constructor of the class net
*
* return void
*/
public function __construct0()
{
$this->errno = 0;
$this->error = "";
}
/**
* This function is the constructor of the class net
*
* @param string $pHost
* @return void
*/
public function __construct1($pHost)
{
$this->errno = 0;
$this->errstr = "";
$this->db_instance = "";
unset($this->db_user);
unset($this->db_passwd);
unset($this->db_sourcename);
#verifing valid param
if ($pHost == "") {
$this->errno = 1000;
$this->errstr = "NET::You must specify a host";
//$this->showMsg();
}
$this->resolv($pHost);
}
/**
* This function puts a host
*

View File

@@ -17,7 +17,7 @@ abstract class Api
const STAT_CREATED = 201;
const STAT_APP_EXCEPTION = 400;
public function __costruct()
public function __construct()
{
self::$workspace = null;
}