summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Regad <dregad@mantisbt.org>2020-01-04 19:29:04 +0100
committerDamien Regad <dregad@mantisbt.org>2020-01-04 19:34:40 +0100
commit8ad11cf17d9d4ef23230ae6fe6844abef9726cf2 (patch)
treed9ac37ec16f3d9d1b72409a984ad30342bf3b0a2
parent460343e4bf3b1747449a620eac4baa6df3975dd6 (diff)
downloadadodb-8ad11cf17d9d4ef23230ae6fe6844abef9726cf2.tar.gz
adodb-8ad11cf17d9d4ef23230ae6fe6844abef9726cf2.tar.bz2
adodb-8ad11cf17d9d4ef23230ae6fe6844abef9726cf2.zip
Removed unused variables and useless assignments
-rw-r--r--drivers/adodb-mysqli.inc.php7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/adodb-mysqli.inc.php b/drivers/adodb-mysqli.inc.php
index b67ae669..1513dfe6 100644
--- a/drivers/adodb-mysqli.inc.php
+++ b/drivers/adodb-mysqli.inc.php
@@ -386,7 +386,6 @@ class ADODB_mysqli extends ADOConnection {
{
// mysqli_insert_id does not return the last_insert_id if called after
// execution of a stored procedure so we execute this instead.
- $result = false;
if ($this->useLastInsertStatement)
$result = ADOConnection::GetOne('SELECT LAST_INSERT_ID()');
else
@@ -437,7 +436,6 @@ class ADODB_mysqli extends ADOConnection {
function CreateSequence($seqname = 'adodbseq', $startID = 1)
{
if (empty($this->_genSeqSQL)) return false;
- $u = strtoupper($seqname);
$ok = $this->Execute(sprintf($this->_genSeqSQL,$seqname));
if (!$ok) return false;
@@ -464,7 +462,6 @@ class ADODB_mysqli extends ADOConnection {
$rs = @$this->Execute($getnext);
if (!$rs) {
if ($holdtransOK) $this->_transOK = true; //if the status was ok before reset
- $u = strtoupper($seqname);
$this->Execute(sprintf($this->_genSeqSQL,$seqname));
$cnt = $this->GetOne(sprintf($this->_genSeqCountSQL,$seqname));
if (!$cnt) $this->Execute(sprintf($this->_genSeq2SQL,$seqname,$startID-1));
@@ -663,7 +660,6 @@ class ADODB_mysqli extends ADOConnection {
*/
function Concat()
{
- $s = "";
$arr = func_get_args();
// suggestion by andrew005@mnogo.ru
@@ -706,7 +702,6 @@ class ADODB_mysqli extends ADOConnection {
// save old fetch mode
global $ADODB_FETCH_MODE;
- $false = false;
$save = $ADODB_FETCH_MODE;
$ADODB_FETCH_MODE = ADODB_FETCH_NUM;
@@ -1053,7 +1048,7 @@ class ADODB_mysqli extends ADOConnection {
$this->useLastInsertStatement = true;
$fnarr = array_merge( array($stmt,$a) , $inputarr);
- $ret = call_user_func_array('mysqli_stmt_bind_param',$fnarr);
+ call_user_func_array('mysqli_stmt_bind_param',$fnarr);
$ret = mysqli_stmt_execute($stmt);
return $ret;
}