cvs: pear /SOAP/interop client_round2_interop.php

From: Date: Tue, 09 Apr 2002 04:46:53 +0000
Subject: cvs: pear /SOAP/interop client_round2_interop.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-3160@lists.php.net to get a copy of this message
shane Tue Apr 9 00:46:53 2002 EDT Modified files: /pear/SOAP/interop client_round2_interop.php Log: fix a couple database items Index: pear/SOAP/interop/client_round2_interop.php diff -u pear/SOAP/interop/client_round2_interop.php:1.3 pear/SOAP/interop/client_round2_interop.php:1.4 --- pear/SOAP/interop/client_round2_interop.php:1.3 Mon Apr 8 03:11:52 2002 +++ pear/SOAP/interop/client_round2_interop.php Tue Apr 9 00:46:52 2002 @@ -16,7 +16,7 @@ // | Authors: Shane Caraveo <Shane@Caraveo.com> | // +----------------------------------------------------------------------+ // -// $Id: client_round2_interop.php,v 1.3 2002/04/08 07:11:52 shane Exp $ +// $Id: client_round2_interop.php,v 1.4 2002/04/09 04:46:52 shane Exp $ // require_once 'DB.php'; // PEAR/DB require_once 'SOAP/Client.php'; @@ -90,11 +90,11 @@ if (!$endpointArray) return; // reset the status to zero - $res = $this->dbc->query("update endpoints set status = 0 where type='$test'"); + $res = $this->dbc->query("update endpoints set status = 0 where class='$test'"); if (DB::isError($res)) { die ($res->getMessage()); } - $res->free(); + if (is_object($res)) $res->free(); // save new endpoints into database foreach($endpointArray as $k => $v){ if (array_key_exists($v['endpointName'],$endpointArray)) { @@ -105,7 +105,7 @@ if (DB::isError($res)) { die ($res->getMessage()); } - $res->free(); + if (is_object($res)) $res->free(); } }

« previous php.pear.cvs (#3160) next »