[wp-hackers] related posts 1.3.3 issue cont.
Kitty
kitty at mookitty.co.uk
Wed Oct 27 20:15:57 UTC 2004
On Wed, 2004-10-27 at 12:58, Alexander Malov wrote:
> if ($result->post_title = ' ') {
> $title = 'Generic link title';
> }
maybe:
if( empty($result->post_title) ) {
$title = 'Generic link title';
}
The space between the quotes might have screwed things up, better to
test for empty() or isset() than "= ''"
--
Cheers, Blog: http://blog.mookitty.co.uk
Kitty PC Repair: http://www.girltech.net
WP Plugins: http://mookitty.co.uk/devblog
Support proactive security: http://www.openbsd.org/orders.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : /pipermail/hackers_wordpress.org/attachments/20041027/049fe262/attachment-0001.bin
More information about the hackers
mailing list