tbrehm
2010-02-25 cdd80be5c62c730b5dc079c24bf62fd973531bcc
interface/lib/classes/remoting_lib.inc.php
@@ -149,11 +149,14 @@
            $this->sys_default_group     = 1;
            $this->sys_groups            = 1;
         } else {
            //* load system user
            //* load system user - try with sysuser and before with userid (workarrond)
            $user = $app->db->queryOneRecord("SELECT * FROM sys_user WHERE sysuser_id = $client_id");
            if(empty($user["userid"])) {
               $this->errorMessage .= 'No sysuser with the ID $client_id found.';
               return false;
                  $user = $app->db->queryOneRecord("SELECT * FROM sys_user WHERE userid = $client_id");
                  if(empty($user["userid"])) {
                        $this->errorMessage .= "No sysuser with the ID $client_id found.";
                        return false;
                  }
            }
            $this->sys_username         = $user['username'];
            $this->sys_userid            = $user['userid'];
@@ -162,7 +165,7 @@
         }
      return true;
   }
       }
        /**