[FIX] Removed duplicate method implementation
Fixes #2020 once merged, thanks @Mezrin
This commit is contained in:
parent
e7d5397c56
commit
a555fa56bf
@ -112,16 +112,6 @@ class Share Extends Base {
|
|||||||
return $this->sqlError();
|
return $this->sqlError();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Fetch the highest available share ID
|
|
||||||
**/
|
|
||||||
function getMaxShareId() {
|
|
||||||
$stmt = $this->mysqli->prepare("SELECT MAX(id) AS id FROM $this->table");
|
|
||||||
if ($this->checkStmt($stmt) && $stmt->execute() && $result = $stmt->get_result())
|
|
||||||
return $result->fetch_object()->id;
|
|
||||||
return $this->sqlError();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fetch the highest available share ID from archive
|
* Fetch the highest available share ID from archive
|
||||||
**/
|
**/
|
||||||
|
|||||||
@ -344,7 +344,7 @@ class Statistics extends Base {
|
|||||||
$data['data'][$row['id']]['is_anonymous'] = $row['is_anonymous'];
|
$data['data'][$row['id']]['is_anonymous'] = $row['is_anonymous'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$data['share_id'] = $this->share->getMaxShareId();
|
$data['share_id'] = $this->share->getLastInsertedShareId();
|
||||||
return $this->memcache->setCache(STATISTICS_ALL_USER_SHARES, $data);
|
return $this->memcache->setCache(STATISTICS_ALL_USER_SHARES, $data);
|
||||||
}
|
}
|
||||||
return $this->sqlError();
|
return $this->sqlError();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user