]> ruin.nu Git - ndwebbie.git/commitdiff
annoying bug
authorMichael Andreen <harv@ruin.nu>
Tue, 2 Jan 2007 03:46:56 +0000 (03:46 +0000)
committerMichael Andreen <harv@ruin.nu>
Tue, 2 Jan 2007 03:46:56 +0000 (03:46 +0000)
ND/Include.pm

index e51d0e6b81bae9c9f849e9d390126e98258e52af..81b21122f70ce7e446b643ee17baaa65c1b6101b 100644 (file)
@@ -75,7 +75,7 @@ WHERE uid =   $1 AND ftid = $2},undef,$ND::UID,$thread);
        if ($rows == 0){
                $ND::DBH->do(q{INSERT INTO forum_thread_visits (uid,ftid) VALUES ($1,$2)}
                        ,undef,$ND::UID,$thread) or $ND::ERROR .= p($ND::DBH->errstr);
-       }else{
+       }elsif(not defined $rows){
                $ND::ERROR .= p($ND::DBH->errstr);
        }
 }