X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fevents.php;h=4a201f43e49faa94da4a96932f50f8bececbfacf;hb=6a8a36f12d00f35004fbb034972ca87dd1a3c4f5;hp=16679ff7e7b47d952ea09b1ff87ce6304376cf1a;hpb=293436e5fd5110220c969513858dbb979f1f35d3;p=friendica.git diff --git a/mod/events.php b/mod/events.php index 16679ff7e7..4a201f43e4 100644 --- a/mod/events.php +++ b/mod/events.php @@ -332,7 +332,7 @@ function events_content(&$a) { $links = array(); - if(count($r)) { + if(dbm::is_result($r)) { $r = sort_by_date($r); foreach($r as $rr) { $j = (($rr['adjust']) ? datetime_convert('UTC',date_default_timezone_get(),$rr['start'], 'j') : datetime_convert('UTC','UTC',$rr['start'],'j')); @@ -344,7 +344,7 @@ function events_content(&$a) { $events=array(); // transform the event in a usable array - if(count($r)) + if(dbm::is_result($r)) $r = sort_by_date($r); $events = process_events($r); @@ -403,7 +403,7 @@ function events_content(&$a) { intval($event_id), intval(local_user()) ); - if(count($r)) + if(dbm::is_result($r)) $orig_event = $r[0]; }