diff --git a/www/vicidial/admin.php b/www/vicidial/admin.php
index 9e9dddc4..1f03878b 100644
--- a/www/vicidial/admin.php
+++ b/www/vicidial/admin.php
@@ -5538,12 +5538,13 @@ if ($SSscript_remove_js > 0)
# 210316-0923 - Small fix for 2FA consistency
# 210317-0819 - Added lead_all_info Non-Agent API function, Changed lead-modify page links to javascript because of Chrome
# 210317-1211 - Fixes for better consistency in password change process, Issue #1261
+# 210317-1736 - Added the ability to see orphan Remote Agent entries(with no valid User account)
#
# make sure you have added a user to the vicidial_users MySQL table with at least user_level 9 to access this page the first time
-$admin_version = '2.14-802a';
-$build = '210317-1211';
+$admin_version = '2.14-803a';
+$build = '210317-1736';
$STARTtime = date("U");
$SQLdate = date("Y-m-d H:i:s");
@@ -17728,10 +17729,12 @@ if ($ADD==41111)
$stmt="SELECT count(*) from vicidial_users where user='$user_start' $LOGadmin_viewable_groupsSQL;";
$rslt=mysql_to_mysqli($stmt, $link);
$row=mysqli_fetch_row($rslt);
- if ($row[0] < 1)
+ if ( ($row[0] < 1) and ($stage != 'ORPHAN') )
{echo "
"._QXZ("REMOTE AGENTS NOT MODIFIED - you must use a valid user as the user_start for remote agents")."\n";}
else
{
+ if ($row[0] < 1)
+ {echo "
"._QXZ("This Remote Agent does not have a valid User")."
\n";}
### check for closest remote agents to this account to ensure no overlapping
$user_finish = ($user_start + $number_of_lines);
$user_finish_length = strlen($user_finish);
@@ -35552,7 +35555,7 @@ if ($ADD==31111)
echo "\n";
echo "\n";
echo "$NWB#remote_agents-extension_group$NWE\n";
- echo "