[pLog-svn] r6051 - plog/trunk/class/dao
Mark Wu
markplace at gmail.com
Sat Nov 17 10:10:43 EST 2007
HI Jon:
Code changed! As you wish :)
Mark
> -----Original Message-----
> From: plog-svn-bounces at devel.lifetype.net
> [mailto:plog-svn-bounces at devel.lifetype.net] On Behalf Of
> mark at devel.lifetype.net
> Sent: Saturday, November 17, 2007 11:09 PM
> To: plog-svn at devel.lifetype.net
> Subject: [pLog-svn] r6051 - plog/trunk/class/dao
>
> Author: mark
> Date: 2007-11-17 10:09:28 -0500 (Sat, 17 Nov 2007) New Revision: 6051
>
> Modified:
> plog/trunk/class/dao/trackbackclient.class.php
> Log:
> Change the code as Jon suggested, it will make the code looks
> more clear.
>
> Modified: plog/trunk/class/dao/trackbackclient.class.php
> ===================================================================
> --- plog/trunk/class/dao/trackbackclient.class.php
> 2007-11-17 07:33:02 UTC (rev 6050)
> +++ plog/trunk/class/dao/trackbackclient.class.php
> 2007-11-17 15:09:28 UTC (rev 6051)
> @@ -121,9 +121,9 @@
> if( !$s->submit( $trackbackUrl, $formvars ))
> return false;
>
> - preg_match( "/.*<error>(.*)<\/error>.*/",
> $s->results, $res );
> + $matched = preg_match( "/.*<error>(.*)<\/error>.*/",
> + $s->results, $res );
>
> - if( empty($res) || $res[1] == 1 )
> + if( !$matched || $res[1] == 1 )
> return false;
> else
> return true;
>
> _______________________________________________
> pLog-svn mailing list
> pLog-svn at devel.lifetype.net
> http://limedaley.com/mailman/listinfo/plog-svn
More information about the pLog-svn
mailing list