From: Alan Knowles Date: Thu, 18 Nov 2010 08:13:50 +0000 (+0800) Subject: Lock.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=af86cada69c2e89b9b0e7a33b45fd6f15fdab961 Lock.php --- diff --git a/Lock.php b/Lock.php index c3ee5520..fac9e4fb 100644 --- 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