PEAK XOOPS - Re: hide "coming events" block when no coming events in englishin japanese

Re: hide "coming events" block when no coming events

List posts in the topic

question Re: hide "coming events" block when no coming events

msg# 1.1.1.1.1.1
depth:
5
Previous post - Next post | Parent - No child | Posted on 2006/8/2 6:25
GIJOE  先任軍曹   Posts: 4110
OK.
I didn't think the option of "untildays".
It is also a bug of piCal_xoops.php

Fix this:

line 404 of piCal_xoops.php


wrong:
if( ++ $count > $num ) break ;

// 開始日が$untildaysより先であれば、そこで打ち切り
if( $untildays > 0 && $event->start > $this->unixtime + $untildays * 86400 ) {
$num_rows = $count ;
break ;
}

right:
if( $count >= $num ) break ;

// 開始日が$untildaysより先であれば、そこで打ち切り
if( $untildays > 0 && $event->start > $this->unixtime + $untildays * 86400 ) {
$num_rows = $count ;
$block['num_rows'] = $num_rows ;
break ;
}

$count ++ ;


I've just fixed piCal_xoops.php as 0.87b.
Download the latest archive and update piCal_xoops.php
Votes:0 Average:0.00

Posts tree

  Advanced search


Login
Username or e-mail:

Password:

Remember Me

Lost Password?

Register now!