inc/users.inc.php
changeset 36 4ec5ab29f634
parent 26 5d63f1e71d6e
child 47 ae140472d97c
--- a/inc/users.inc.php	Thu Jun 28 09:19:48 2007 +0000
+++ b/inc/users.inc.php	Mon Jul 02 23:01:18 2007 +0000
@@ -380,10 +380,13 @@
               $result = $db->query("SELECT users.id, users.fullname FROM users, zones WHERE zones.domain_id=$id AND zones.owner=users.id ORDER by fullname");
               if ($result->numRows() == 0)
               {
-                      error(ERR_USER_NOT_EXIST);
-              } else {
+		      return "";
+              } 
+	      else 
+	      {
                       $names = array();
-                      while ($r = $result->fetchRow()) {
+                      while ($r = $result->fetchRow()) 
+		      {
                               $names[] = $r['fullname'];
                       }
                       return implode(', ', $names);