ftimme
2012-05-30 2cb1563f63386b35a69e460051aa9b4a2851d104
interface/web/client/reseller_edit.php
@@ -138,7 +138,7 @@
   function onAfterInsert() {
      global $app, $conf;
      // Create the group for the reseller
      $groupid = $app->db->datalogInsert('sys_group', "(name,description,client_id) VALUES ('".mysql_real_escape_string($this->dataRecord["username"])."','',".$this->id.")", 'groupid');
      $groupid = $app->db->datalogInsert('sys_group', "(name,description,client_id) VALUES ('".$app->db->quote($this->dataRecord["username"])."','',".$this->id.")", 'groupid');
      $groups = $groupid;
      
      $username = $app->db->quote($this->dataRecord["username"]);