mirror of
https://github.com/twisterarmy/cloud-server.git
synced 2025-09-08 11:52:31 +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]);
|
$query->execute([$hash, $time]);
|
||||||
|
|
||||||
$this->_db->lastInsertId();
|
return $this->_db->lastInsertId();
|
||||||
|
|
||||||
} catch (PDOException $e) {
|
} catch (PDOException $e) {
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ class ModelUser extends Model {
|
|||||||
|
|
||||||
$query->execute([$blockId, $userName]);
|
$query->execute([$blockId, $userName]);
|
||||||
|
|
||||||
$this->_db->lastInsertId();
|
return $this->_db->lastInsertId();
|
||||||
|
|
||||||
} catch (PDOException $e) {
|
} catch (PDOException $e) {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user