Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [pugdog] Problems with modify_link hook

Quote Reply
Re: [pugdog] Problems with modify_link hook In reply to
Thank for suggestion
It helps
but I've found another problem - the same message appears
and I've digged into code and found that Timestmp field check get 0 value so Timestmp check cause this error

I fix this by manually setting Timestmp to now time
Code:
my ($sec,$min,$hour,$mday,$mon,$year,$wday,$yday,$isdst) =
localtime(time);
$year=1900+$year;
$mon++;
if (length($mon)==1) {$mon="0$mon"}
if (length($mday)==1) {$mday="0$mday"}
if (length($hour)==1) {$hour="0$hour"}
if (length($min)==1) {$min="0$min"}
if (length($sec)==1) {$sec="0$sec"}
$save->{Timestmp} = "$year$mon$mday$hour$min$sec";

Tomorrow I'll try do ->update in hook with manually setting Timestmp
but I think this will not work coz update delete all Timestmp fields...

Let's see
Subject Author Views Date
Thread Problems with modify_link hook twssser 2795 Sep 23, 2002, 3:20 PM
Thread Re: [twssser] Problems with modify_link hook
pugdog 2691 Sep 24, 2002, 2:49 AM
Thread Re: [pugdog] Problems with modify_link hook
twssser 2701 Sep 24, 2002, 3:53 AM
Thread Re: [twssser] Problems with modify_link hook
pugdog 2683 Sep 24, 2002, 5:56 AM
Thread Re: [pugdog] Problems with modify_link hook
twssser 2688 Sep 24, 2002, 3:43 PM
Thread Re: [twssser] Problems with modify_link hook
pugdog 2671 Sep 25, 2002, 9:15 AM
Post Re: [pugdog] Problems with modify_link hook
twssser 2647 Sep 25, 2002, 1:57 PM