mirror of
https://github.com/e107inc/e107.git
synced 2025-04-19 20:21:51 +02:00
Bugtracker #3909 - check UE field category empty before deleting
This commit is contained in:
parent
89276c289a
commit
b419cf0a10
@ -11,8 +11,8 @@
|
||||
| GNU General Public License (http://gnu.org).
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_admin/users_extended.php,v $
|
||||
| $Revision: 1.7 $
|
||||
| $Date: 2007-02-24 14:45:24 $
|
||||
| $Revision: 1.8 $
|
||||
| $Date: 2007-04-14 17:24:22 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@ -156,10 +156,15 @@ if ($_POST['eu_action'] == "delext")
|
||||
}
|
||||
}
|
||||
|
||||
// Delete category
|
||||
if ($_POST['eu_action'] == "delcat")
|
||||
{
|
||||
list($_id, $_name) = explode(",",$_POST['key']);
|
||||
if($ue->user_extended_remove($_id, $_name))
|
||||
if (count($ue->user_extended_get_fields($_id)) > 0)
|
||||
{
|
||||
$message = EXTLAN_77;
|
||||
}
|
||||
elseif($ue->user_extended_remove($_id, $_name))
|
||||
{
|
||||
$message = EXTLAN_41;
|
||||
}
|
||||
|
@ -4,8 +4,8 @@
|
||||
| e107 website system - Language File.
|
||||
|
|
||||
| $Source: /cvs_backup/e107_0.8/e107_languages/English/admin/lan_users_extended.php,v $
|
||||
| $Revision: 1.3 $
|
||||
| $Date: 2007-01-28 20:49:35 $
|
||||
| $Revision: 1.4 $
|
||||
| $Date: 2007-04-14 17:24:29 $
|
||||
| $Author: e107steved $
|
||||
+----------------------------------------------------------------------------+
|
||||
*/
|
||||
@ -89,6 +89,7 @@ define("EXTLAN_73", "was not deactivated!");
|
||||
define("EXTLAN_74", "is a reserved field name and can not be used.");
|
||||
define("EXTLAN_75", "Error adding field to database.");
|
||||
define("EXTLAN_76", "Invalid characters in field name - only A-Z, a-z, 0-9, '_' allowed.");
|
||||
define("EXTLAN_77", "Category not deleted - must delete fields in category first: ");
|
||||
|
||||
|
||||
//textbox
|
||||
|
Loading…
x
Reference in New Issue
Block a user