self20 / avalanche-rt

Automatically exported from code.google.com/p/avalanche-rt
Other
0 stars 0 forks source link

SetLabel bug #35

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
original:

public function SetLabel($id, $label)
        {

                $message = new xmlrpcmsg('d.set_custom4',
                        array(new xmlrpcmsg($id), new xmlrpcmsg($label) ) );

                $reponse = $this->SendAndRecieve($message);

                $return = array();

                $return['setLabel']=$reponse[0]==0?true:false;

                return $return;

        }

Fix:

public function SetLabel($id, $label)
    {

        $message = new xmlrpcmsg('d.set_custom1',array(new xmlrpcval($id), new xmlrpcval($label) ) );
        $reponse = $this->SendAndRecieve($message);

        $return = array();

        $return['setLabel']=$reponse[0]==0?true:false;

        return $return;

    }

Original issue reported on code.google.com by wap.7ba...@gmail.com on 5 Aug 2013 at 12:45