Lock.php
authorAlan Knowles <alan@akbkhome.com>
Thu, 18 Nov 2010 08:13:50 +0000 (16:13 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 18 Nov 2010 08:13:50 +0000 (16:13 +0800)
Lock.php

index c3ee552..fac9e4f 100644 (file)
--- a/Lock.php
+++ b/Lock.php
@@ -27,6 +27,9 @@ class Pman_Core_Lock extends Pman
         }
         $tab = str_replace('/', '',$_REQUEST['on_table']); // basic protection??
         $x = DB_DataObject::factory($tab);
+        if (!$x->get($_REQUEST['on_id'])) {
+            $this->jerr("Item does not exist");
+        }
     }
     
 }
\ No newline at end of file