From 21e91d74e4e76eaadbfbef8b11c2fbb93dbc1b7a Mon Sep 17 00:00:00 2001 From: sparkyx Date: Thu, 27 Dec 2007 17:13:42 +0000 Subject: [PATCH] pa_id can be null --- include/class_bud_hypo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/class_bud_hypo.php b/include/class_bud_hypo.php index 411951815..1d6c40074 100644 --- a/include/class_bud_hypo.php +++ b/include/class_bud_hypo.php @@ -76,7 +76,7 @@ class Bud_Hypo { function add() { $bh_saldo=(isNumber($this->bh_saldo) == 1 ) ?$this->bh_saldo:0; - $pa_id=($this->pa_id < 0 )?null:$this->pa_id; + $pa_id=($this->pa_id <= 0 )?null:$this->pa_id; $sql="insert into bud_hypothese( bh_name,bh_saldo,bh_description,pa_id) ". " values ($1,$2,$3,$4) returning bh_id";