added spaces + some curly braces + some usage of dbm::is_result()
authorRoland Häder <roland@mxchange.org>
Thu, 26 Jan 2017 14:23:30 +0000 (15:23 +0100)
committerRoland Häder <roland@mxchange.org>
Mon, 14 May 2018 20:50:01 +0000 (22:50 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
mod/_well_known.php
mod/events.php

index 782dc7a..fb8df48 100644 (file)
@@ -52,7 +52,7 @@ function wk_social_relay()
                        $tags[$tag] = $tag;
                }
 
-               if (Config::get('system', 'relay_user_tags')) {
+               if (get_config('system', 'relay_user_tags')) {
                        $terms = q("SELECT DISTINCT(`term`) FROM `search`");
 
                        foreach ($terms AS $term) {
index cad440f..bbd6337 100644 (file)
@@ -433,6 +433,7 @@ function events_content(App $a) {
                if (x($_REQUEST, 'location'))    {$orig_event['location']    = $_REQUEST['location'];}
                if (x($_REQUEST, 'start'))       {$orig_event['start']       = $_REQUEST['start'];}
                if (x($_REQUEST, 'finish'))      {$orig_event['finish']      = $_REQUEST['finish'];}
+               if (x($_REQUEST,'finish')) $orig_event['finish'] = $_REQUEST['finish'];
 
                $n_checked = ((x($orig_event) && $orig_event['nofinish']) ? ' checked="checked" ' : '');
                $a_checked = ((x($orig_event) && $orig_event['adjust'])   ? ' checked="checked" ' : '');