Code adjustment
authorJoey Schulze <joey@infodrom.org>
Sat, 30 Dec 2006 17:20:56 +0000 (17:20 +0000)
committerJoey Schulze <joey@infodrom.org>
Sat, 30 Dec 2006 17:20:56 +0000 (17:20 +0000)
src/Infodrom/logbook/update.wml

index 48d7138..459557e 100644 (file)
@@ -46,7 +46,7 @@
 <h3><? echo $o_teaser; ?></h3>
 
 <?
-  if (! isset($_POST[oid])) {
+  if (! isset($_POST[oid]) || $_POST[oid] == 0) {
     $oid = pg_getlastoid ($sth);
   } else {
     $oid = $_POST[oid];