[ADMINUSER] User not editable if not birthdate timestamp in database #68

Closed
opened 2021-04-09 16:23:43 +02:00 by Ghost · 4 comments

As admin, user is not editable if birthday timestamp is not set in database. Error is : PHP Fatal error: Uncaught Error: Call to a member function format() on bool in [...]/lib/object_coordination/adminuser/adminuser.php:630

As admin, user is not editable if birthday timestamp is not set in database. Error is : `PHP Fatal error: Uncaught Error: Call to a member function format() on bool in [...]/lib/object_coordination/adminuser/adminuser.php:630`
Ghost added the
bug
master
labels 2021-04-09 16:23:43 +02:00
Author

Best way to fix issue is to make a check on existant birthday timestamp in database.

Best way to fix issue is to make a check on existant birthday timestamp in database.
Author

In fact, best way was to define a default value to 0 (01-01-1970 timestamp) in database and set the 0 value in the user class construct.

In fact, best way was to define a default value to 0 (01-01-1970 timestamp) in database and set the 0 value in the user class construct.
Author

Issue fixed.

Issue fixed.
Ghost added the
fixed
label 2021-04-09 16:39:24 +02:00
Ghost referenced this issue from a commit 2021-04-09 16:41:04 +02:00
Author

Pushed to master.

Pushed to master.
Ghost closed this issue 2021-04-09 16:41:15 +02:00
Sign in to join this conversation.
No description provided.