Browse Source

add missed return value

main
ghost 3 years ago
parent
commit
547b6217c4
  1. 2
      src/application/model/block.php
  2. 2
      src/application/model/user.php

2
src/application/model/block.php

@ -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) {

2
src/application/model/user.php

@ -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…
Cancel
Save