mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
Minor fix
This commit is contained in:
@@ -1672,11 +1672,11 @@ class e_db_pdo implements e_db
|
|||||||
* @param $table (without the prefix)
|
* @param $table (without the prefix)
|
||||||
* @param $field
|
* @param $field
|
||||||
* @param string $where (optional)
|
* @param string $where (optional)
|
||||||
* @return bool|resource
|
* @return mixed
|
||||||
*/
|
*/
|
||||||
public function max($table, $field, $where='')
|
public function max($table, $field, $where='')
|
||||||
{
|
{
|
||||||
$qry = "SELECT MAX(".$field.") FROM `".$this->mySQLPrefix.$table."` ";
|
$qry = "SELECT MAX(".$field.") FROM ".$this->mySQLPrefix.$table;
|
||||||
|
|
||||||
if(!empty($where))
|
if(!empty($where))
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user