mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-06 00:24:08 +01:00
* [MOD] Set default user's preferences on demo mode
This commit is contained in:
@@ -231,11 +231,11 @@ class UserPreferencesData
|
||||
* @return void
|
||||
* @link http://php.net/manual/en/language.oop5.magic.php#language.oop5.magic.sleep
|
||||
*/
|
||||
function __wakeup()
|
||||
public function __wakeup()
|
||||
{
|
||||
// Para realizar la conversión de nombre de propiedades que empiezan por _
|
||||
foreach (get_object_vars($this) as $name => $value) {
|
||||
if (substr($name, 0, 1) === '_') {
|
||||
if (strpos($name, '_') === 0) {
|
||||
$newName = substr($name, 1);
|
||||
$this->$newName = $value;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user