mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-14 03:52:21 +03:00
The set setting may also get int and bool values
This commit is contained in:
parent
8ce3a8ffce
commit
81b93fc17d
2 changed files with 4 additions and 4 deletions
|
@ -438,9 +438,9 @@ class Admins_model extends EA_Model {
|
|||
*
|
||||
* @param int $admin_id Admin ID.
|
||||
* @param string $name Setting name.
|
||||
* @param string|null $value Setting value.
|
||||
* @param mixed $value Setting value.
|
||||
*/
|
||||
public function set_setting(int $admin_id, string $name, string $value = NULL)
|
||||
public function set_setting(int $admin_id, string $name, $value = NULL)
|
||||
{
|
||||
if ( ! $this->db->update('user_settings', [$name => $value], ['id_users' => $admin_id]))
|
||||
{
|
||||
|
|
|
@ -462,9 +462,9 @@ class Secretaries_model extends EA_Model {
|
|||
*
|
||||
* @param int $secretary_id Secretary ID.
|
||||
* @param string $name Setting name.
|
||||
* @param string|null $value Setting value.
|
||||
* @param mixed $value Setting value.
|
||||
*/
|
||||
public function set_setting(int $secretary_id, string $name, string $value = NULL)
|
||||
public function set_setting(int $secretary_id, string $name, $value = NULL)
|
||||
{
|
||||
if ( ! $this->db->update('user_settings', [$name => $value], ['id_users' => $secretary_id]))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue