From d8b0f2f31074b83fffa613e93cf156fd913f74be Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Tue, 16 Jun 2009 14:06:56 +0000 Subject: Fix bug #40205 - Wrong message shown to user, when adding bots to friends/foes Authorised by: acydburn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@9597 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/ucp/ucp_zebra.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'phpBB/includes') diff --git a/phpBB/includes/ucp/ucp_zebra.php b/phpBB/includes/ucp/ucp_zebra.php index 50fcbed90e..5ed4db7520 100644 --- a/phpBB/includes/ucp/ucp_zebra.php +++ b/phpBB/includes/ucp/ucp_zebra.php @@ -136,6 +136,10 @@ class ucp_zebra { $user_id_ary[] = $row['user_id']; } + else if ($row['user_id'] != ANONYMOUS) + { + $error[] = $user->lang['NOT_ADDED_' . $l_mode . '_BOTS']; + } else { $error[] = $user->lang['NOT_ADDED_' . $l_mode . '_ANONYMOUS']; -- cgit v1.2.1