From 3e7bb908d1a54391c565ac1b7cdd4f008918f50d Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 25 Jan 2016 16:38:51 +0800 Subject: [PATCH] DataObjects/Core_enum.php --- DataObjects/Core_enum.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/DataObjects/Core_enum.php b/DataObjects/Core_enum.php index b7bd84f4..c38650aa 100644 --- a/DataObjects/Core_enum.php +++ b/DataObjects/Core_enum.php @@ -199,8 +199,7 @@ class Pman_Core_DataObjects_Core_enum extends DB_DataObject $x->whereAdd("etype = '{$this->escape($req['etype'])}' AND name = '{$this->escape($req['name'])}'"); $x->find(true); if($x->count() > 0){ - $roo->jerr( function beforeInsert($req, $roo) -); + $roo->jerr("name already exists - '{$req['name']}'" ); } } } -- 2.39.2