[xoops-cvslog 4743] CVS update: xoops2jp/html/modules/legacyRender/admin/forms

Back to archive index

Minahito minah****@users*****
2006年 10月 2日 (月) 23:15:59 JST


Index: xoops2jp/html/modules/legacyRender/admin/forms/BannerclientAdminEditForm.class.php
diff -u xoops2jp/html/modules/legacyRender/admin/forms/BannerclientAdminEditForm.class.php:1.1.2.3 xoops2jp/html/modules/legacyRender/admin/forms/BannerclientAdminEditForm.class.php:1.1.2.4
--- xoops2jp/html/modules/legacyRender/admin/forms/BannerclientAdminEditForm.class.php:1.1.2.3	Mon Jul 10 14:57:21 2006
+++ xoops2jp/html/modules/legacyRender/admin/forms/BannerclientAdminEditForm.class.php	Mon Oct  2 23:15:59 2006
@@ -1,7 +1,7 @@
 <?php
 /**
  * @package legacyRender
- * @version $Id: BannerclientAdminEditForm.class.php,v 1.1.2.3 2006/07/10 05:57:21 minahito Exp $
+ * @version $Id: BannerclientAdminEditForm.class.php,v 1.1.2.4 2006/10/02 14:15:59 minahito Exp $
  */
 
 if (!defined('XOOPS_ROOT_PATH')) exit();
@@ -68,8 +68,11 @@
 	{
 		if (strlen($this->get('login')) > 0) {
 			$handler =& xoops_getmodulehandler('bannerclient', 'legacyRender');
-			$t_objs =& $handler->getObjects(new Criteria('login', $this->get('login')));
-			if (count($t_objs) > 0) {
+			$criteria =& new CriteriaCompo();
+			$criteria->add(new Criteria('login', $this->get('login')));
+			$criteria->add(new Criteria('cid', $this->get('cid'), '<>'));
+
+			if ($handler->getCount($criteria) > 0) {
 				$this->addErrorMessage(_AD_LEGACYRENDER_ERROR_LOGIN_REPETITION);
 			}
 		}


xoops-cvslog メーリングリストの案内
Back to archive index