mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Uniformize code
This commit is contained in:
parent
89f77f5e2b
commit
8d84dd1155
|
|
@ -55,7 +55,7 @@ abstract class DoliDB implements Database
|
|||
public $transaction_opened;
|
||||
/** @var string Last successful query */
|
||||
public $lastquery;
|
||||
/** @ar string Last failed query */
|
||||
/** @var string Last failed query */
|
||||
public $lastqueryerror;
|
||||
/** @var string Last error message */
|
||||
public $lasterror;
|
||||
|
|
|
|||
|
|
@ -320,14 +320,14 @@ class printing_printgcp extends PrintingDriver
|
|||
}
|
||||
|
||||
/**
|
||||
* Curl request
|
||||
* Make a curl request
|
||||
*
|
||||
* @param string $url url to hit
|
||||
* @param array $postfields array of post fields
|
||||
* @param string[] $headers array of http headers
|
||||
* @return string response from curl
|
||||
* @param string $url url to hit
|
||||
* @param array $postfields array of post fields
|
||||
* @param string[] $headers array of http headers
|
||||
* @return string response from curl
|
||||
*/
|
||||
private function makeCurl($url,$postfields=array(),$headers=array())
|
||||
private function makeCurl($url, $postfields=array(), $headers=array())
|
||||
{
|
||||
// Curl Init
|
||||
$curl = curl_init($url);
|
||||
|
|
|
|||
|
|
@ -110,7 +110,7 @@ function test_sql_and_script_inject($val, $type)
|
|||
}
|
||||
|
||||
/**
|
||||
* Security: Return true if OK, false otherwise.
|
||||
* Return true if security check on parameters are OK, false otherwise.
|
||||
*
|
||||
* @param string $var Variable name
|
||||
* @param string $type 1=GET, 0=POST, 2=PHP_SELF
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user