From db76bd8e3055fe066d02f0ce750afd208ddb7318 Mon Sep 17 00:00:00 2001 From: Kevin Reed Date: Fri, 28 Sep 2018 14:56:28 -0500 Subject: [PATCH] Web: Eliminate PHP warning 'Creating default object from empty value' --- html/user/add_venue.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/html/user/add_venue.php b/html/user/add_venue.php index 5dec83b082..65379e1e3d 100644 --- a/html/user/add_venue.php +++ b/html/user/add_venue.php @@ -35,6 +35,8 @@ if ($action) { if ($subset == "global") { $prefs = prefs_parse_global($user->global_prefs); $prefs->$venue = $prefs; + + $new_prefs = new stdClass(); $error = prefs_global_parse_form($new_prefs); if ($error != false) { $title = tra("Edit %1 preferences", subset_name($subset)); @@ -56,7 +58,8 @@ if ($action) { } else { $prefs = prefs_parse_project($user->project_prefs); $prefs->$venue = $prefs; - + + $new_prefs = new stdClass(); $project_error = prefs_project_parse_form($new_prefs); $error = prefs_resource_parse_form($new_prefs);