]> git.mxchange.org Git - friendica.git/commitdiff
Rename wrong desc form value name in mod/events
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 24 Dec 2019 17:38:46 +0000 (12:38 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 24 Dec 2019 17:44:36 +0000 (12:44 -0500)
- Addresses https://github.com/friendica/friendica/issues/8000#issuecomment-568783457

mod/events.php

index 5a5a22d3186bd194a079dc407966a30c7e7ef472..5e129aaf6105b8936b8e4e09e4dfdd52e0017146 100644 (file)
@@ -437,7 +437,7 @@ function events_content(App $a)
                if (!empty($_REQUEST['nofinish']))    {$orig_event['nofinish']    = $_REQUEST['nofinish'];}
                if (!empty($_REQUEST['adjust']))      {$orig_event['adjust']      = $_REQUEST['adjust'];}
                if (!empty($_REQUEST['summary']))     {$orig_event['summary']     = $_REQUEST['summary'];}
-               if (!empty($_REQUEST['description'])) {$orig_event['description'] = $_REQUEST['description'];}
+               if (!empty($_REQUEST['desc']))        {$orig_event['desc']        = $_REQUEST['desc'];}
                if (!empty($_REQUEST['location']))    {$orig_event['location']    = $_REQUEST['location'];}
                if (!empty($_REQUEST['start']))       {$orig_event['start']       = $_REQUEST['start'];}
                if (!empty($_REQUEST['finish']))      {$orig_event['finish']      = $_REQUEST['finish'];}
@@ -445,9 +445,9 @@ function events_content(App $a)
                $n_checked = (!empty($orig_event['nofinish']) ? ' checked="checked" ' : '');
                $a_checked = (!empty($orig_event['adjust'])   ? ' checked="checked" ' : '');
 
-               $t_orig = !empty($orig_event) ? $orig_event['summary']  : '';
-               $d_orig = !empty($orig_event) ? $orig_event['desc']     : '';
-               $l_orig = !empty($orig_event) ? $orig_event['location'] : '';
+               $t_orig = $orig_event['summary']  ?? '';
+               $d_orig = $orig_event['desc']     ?? '';
+               $l_orig = $orig_event['location'] ?? '';
                $eid = !empty($orig_event) ? $orig_event['id']  : 0;
                $cid = !empty($orig_event) ? $orig_event['cid'] : 0;
                $uri = !empty($orig_event) ? $orig_event['uri'] : '';