Lock.php
[Pman.Core] / 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