[wp-hackers] Re: hackers Digest, Vol 5, Issue 57
Mark Jaquith
mark.wordpress at txfx.net
Wed Oct 27 20:50:22 UTC 2004
Alexander Malov wrote:
>Thanks Kitty that did the trick! The space was messing things up.
>Sometimes the obvious doesn't occur to me until after the fact ;) I
>stuck with the space since WP SQL treat empty titles as that instead
>of NULL.
>
Erm... the space wasn't messing it up. It was your use of "=" instead
of "=="
And using empty() isn't right. For example, this code doesn't echo
anything:
<?php
$test = ' ';
if (empty($test)){
echo 'it is empty';
}
?>
A string with a solitary space isn't empty.
More information about the hackers
mailing list