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 3522 Sep 23, 2002, 3:20 PM
Thread Re: [twssser] Problems with modify_link hook
pugdog 3403 Sep 24, 2002, 2:49 AM
Thread Re: [pugdog] Problems with modify_link hook
twssser 3411 Sep 24, 2002, 3:53 AM
Thread Re: [twssser] Problems with modify_link hook
pugdog 3393 Sep 24, 2002, 5:56 AM
Thread Re: [pugdog] Problems with modify_link hook
twssser 3400 Sep 24, 2002, 3:43 PM
Thread Re: [twssser] Problems with modify_link hook
pugdog 3383 Sep 25, 2002, 9:15 AM
Post Re: [pugdog] Problems with modify_link hook
twssser 3356 Sep 25, 2002, 1:57 PM