[Dehs-devel] r136 - trunk
atomo64-guest at alioth.debian.org
atomo64-guest at alioth.debian.org
Thu May 29 21:43:54 UTC 2008
Author: atomo64-guest
Date: 2008-05-29 21:43:52 +0000 (Thu, 29 May 2008)
New Revision: 136
Modified:
trunk/dehs_pg.php
Log:
Use is_numeric instead of is_inst, as the value returned by dba_fetch is a string, not an int
Modified: trunk/dehs_pg.php
===================================================================
--- trunk/dehs_pg.php 2008-05-29 21:35:30 UTC (rev 135)
+++ trunk/dehs_pg.php 2008-05-29 21:43:52 UTC (rev 136)
@@ -442,8 +442,8 @@
// when one of the values is 'missing' set to -1 so the other value
// _is_ UPDATEd, but use -1 to catch those bugs
- $inst = (is_int($inst))? $inst : -1;
- $vote = (is_int($vote))? $vote : -1;
+ $inst = (is_numeric($inst))? $inst : -1;
+ $vote = (is_numeric($vote))? $vote : -1;
@pg_exec($db, "UPDATE pkgs SET pop_inst='$inst',pop_vote='$vote' WHERE name='$package'");
}
More information about the Dehs-devel
mailing list