mirror of
https://github.com/twisterarmy/cloud-server.git
synced 2025-03-13 05:51:46 +00:00
add missed return value
This commit is contained in:
parent
62c11ea439
commit
547b6217c4
@ -26,7 +26,7 @@ class ModelBlock extends Model {
|
||||
|
||||
$query->execute([$hash, $time]);
|
||||
|
||||
$this->_db->lastInsertId();
|
||||
return $this->_db->lastInsertId();
|
||||
|
||||
} catch (PDOException $e) {
|
||||
|
||||
|
@ -28,7 +28,7 @@ class ModelUser extends Model {
|
||||
|
||||
$query->execute([$blockId, $userName]);
|
||||
|
||||
$this->_db->lastInsertId();
|
||||
return $this->_db->lastInsertId();
|
||||
|
||||
} catch (PDOException $e) {
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user