Remote function client_add returns 0

Discussion in 'General' started by rangerluke, Jan 20, 2012.

  1. rangerluke

    rangerluke New Member

    Hello!

    I had a problem with the remote-api and the function client_add.
    Everytime I called the function, the return value was 0.

    In the script /usr/local/ispconfig/interface/lib/classes/remoting.inc.php is a small bug. The lin with
    PHP:
    $insert_id $app->db->insertDB();
    is coming to late.
    The line must be after this one
    PHP:
    $app->db->query($sql);
    Than the returned id is not empty!
     

Share This Page