tbrehm
2010-09-15 66bc13da957b8897ebc6a18e3cb99da39c48ac4b
interface/web/client/reseller_edit.php
@@ -200,6 +200,13 @@
         $app->db->query($sql);
      }
      
      // ensure that a reseller is not converted to a client in demo mode when client_id <= 2
      if($conf['demo_mode'] == true && $this->id <= 2) {
         if(isset($this->dataRecord["limit_client"]) && $this->dataRecord["limit_client"] != -1) {
            $app->db->query('UPDATE client set limit_client = -1 WHERE client_id = '.$this->id);
         }
      }
      // reseller status changed
      if(isset($this->dataRecord["limit_client"]) && $this->dataRecord["limit_client"] != $this->oldDataRecord["limit_client"]) {
         $modules = $conf['interface_modules_enabled'] . ',client';