$event_id = $this->wpdb->insert_id;
}
if ( !$event_id ) {
- die('something is wrong no event_id');
+ continue;
}
+ ++$number_events;
// generate the slug name for this new event
$event_abstract = new GlmDataEvents( $this->wpdb, $this->config );
$event_abstract->updateSlug( $event_id );
);
$recurr_id = $this->wpdb->insert_id;
$Recurrences->createRecurrenceTimesEntries( $recurr_id, true, true );
- ++$number_events;
}
}
if ( !$debug ) {
<td>{$feed.updated}</td>
<td>{$feed.next_runtime|date_format:"%F %T"}</td>
<td>{$feed.events}</td>
- <td>{if $feed.duration}{$feed.duration} Seconds{/if}</td>
+ <td>{if $feed.duration}
+ {***************************************************************************************
+ Calculate the duration time in hour:min:sec
+ hour = time / 3600
+ min = (time / 60) % 60
+ sec = time % 60
+ The smarty way of doing things!
+ ****************************************************************************************}
+ {math assign="t_hours" equation="t_time / 3600" t_time=$feed.duration format="%d"}
+ {math assign="t_minutes" equation="(t_time / 60) % 60" t_time=$feed.duration format="%d"}
+ {math assign="t_seconds" equation="t_time % 60" t_time=$feed.duration format="%d"}
+
+ {$t_hours}:{$t_minutes}:{$t_seconds}
+ {/if}</td>
<td><a href="{$thisUrl}?page={$thisPage}&glm_action=events&option=icalfeed&option2=delete&id={$feed.id}"
onClick="return confirm('This cannot be undone!\nAre you sure?')" class="button">Delete</a></td>
</tr>