Backported from HEAD. Some old backups can contain empties in user->picture, fix them before insert.
This commit is contained in:
@@ -1613,7 +1613,8 @@
|
||||
// relink the descriptions
|
||||
$user->description = restore_decode_absolute_links($user->description);
|
||||
|
||||
if (!empty($CFG->disableuserimages)) {
|
||||
/// Disable pictures based on global setting of existing empty value (old backups can contain wrong empties)
|
||||
if (!empty($CFG->disableuserimages) || empty($user->picture)) {
|
||||
$user->picture = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user