mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
fix warning staffpanel part
This commit is contained in:
@@ -102,6 +102,11 @@ class DB
|
||||
return $this->driver->lastInsertId();
|
||||
}
|
||||
|
||||
public function freeResult($result)
|
||||
{
|
||||
return $this->driver->freeResult($result);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -76,5 +76,9 @@ class DBMysqli implements DBInterface
|
||||
return $this->mysqli->insert_id;
|
||||
}
|
||||
|
||||
public function freeResult($mysqliResult)
|
||||
{
|
||||
return $mysqliResult->free_result();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -59,3 +59,8 @@ function mysql_insert_id()
|
||||
{
|
||||
return DB::getInstance()->lastInsertId();
|
||||
}
|
||||
|
||||
function mysql_free_result($result)
|
||||
{
|
||||
return DB::getInstance()->freeResult($result);
|
||||
}
|
||||
|
||||
@@ -26,4 +26,6 @@ interface DBInterface
|
||||
|
||||
public function lastInsertId(): int;
|
||||
|
||||
public function freeResult($result);
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user