forked from mirzaev/pot-php
models write() returns record and commented useless account record update
This commit is contained in:
@@ -92,7 +92,7 @@ final class authorizations extends core implements record_interface
|
||||
* @param bool $$system_settings
|
||||
* @param bool $$active Is the record active?
|
||||
*
|
||||
* @return int|false The record identifier, if created
|
||||
* @return record|false The record identifier, if created
|
||||
*/
|
||||
public function write(
|
||||
int $$account,
|
||||
@@ -100,7 +100,7 @@ final class authorizations extends core implements record_interface
|
||||
bool $$settings = true,
|
||||
bool $$system_settings = false,
|
||||
bool $$active = true,
|
||||
): int|false
|
||||
): record|false
|
||||
{
|
||||
$$record = $$this->database->record(
|
||||
$$this->database->count() + 1,
|
||||
@@ -117,7 +117,7 @@ final class authorizations extends core implements record_interface
|
||||
$$created = $$this->database->write($$record);
|
||||
|
||||
// Exit (success)
|
||||
return $$created ? $$record->identifier : false;
|
||||
return $$created ? $$record : false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user